FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
vhost_user_inline.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VHOST_LOG_PAGE   0x1000
 
#define vhost_user_log_dirty_ring(vui, vq, member)
 

Functions

static_always_inline void * map_guest_mem (vhost_user_intf_t *vui, uword addr, u32 *hint)
 
static_always_inline void * map_user_mem (vhost_user_intf_t *vui, uword addr)
 
static_always_inline void vhost_user_log_dirty_pages_2 (vhost_user_intf_t *vui, u64 addr, u64 len, u8 is_host_address)
 
static_always_inline u8format_vhost_trace (u8 *s, va_list *va)
 
static_always_inline void vhost_user_send_call (vlib_main_t *vm, vhost_user_vring_t *vq)
 

Macro Definition Documentation

#define VHOST_LOG_PAGE   0x1000

Definition at line 159 of file vhost_user_inline.h.

#define vhost_user_log_dirty_ring (   vui,
  vq,
  member 
)
Value:
if (PREDICT_FALSE(vq->log_used)) { \
vhost_user_log_dirty_pages_2(vui, vq->log_guest_addr + STRUCT_OFFSET_OF(vring_used_t, member), \
sizeof(vq->used->member), 0); \
}
#define STRUCT_OFFSET_OF(t, f)
Definition: clib.h:62
#define PREDICT_FALSE(x)
Definition: clib.h:105
static_always_inline void vhost_user_log_dirty_pages_2(vhost_user_intf_t *vui, u64 addr, u64 len, u8 is_host_address)

Definition at line 190 of file vhost_user_inline.h.

Function Documentation

static_always_inline u8* format_vhost_trace ( u8 s,
va_list *  va 
)

Definition at line 197 of file vhost_user_inline.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void* map_guest_mem ( vhost_user_intf_t vui,
uword  addr,
u32 hint 
)

Definition at line 20 of file vhost_user_inline.h.

+ Here is the caller graph for this function:

static_always_inline void* map_user_mem ( vhost_user_intf_t vui,
uword  addr 
)

Definition at line 143 of file vhost_user_inline.h.

+ Here is the caller graph for this function:

static_always_inline void vhost_user_log_dirty_pages_2 ( vhost_user_intf_t vui,
u64  addr,
u64  len,
u8  is_host_address 
)

Definition at line 162 of file vhost_user_inline.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void vhost_user_send_call ( vlib_main_t vm,
vhost_user_vring_t vq 
)

Definition at line 235 of file vhost_user_inline.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: