FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
vhost_user_inline.h File Reference
+ Include dependency graph for vhost_user_inline.h:
+ 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)
 
static_always_inline u8 vui_is_link_up (vhost_user_intf_t *vui)
 

Macro Definition Documentation

◆ VHOST_LOG_PAGE

#define VHOST_LOG_PAGE   0x1000

Definition at line 172 of file vhost_user_inline.h.

◆ vhost_user_log_dirty_ring

#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:65
#define PREDICT_FALSE(x)
Definition: clib.h:111

Definition at line 203 of file vhost_user_inline.h.

Function Documentation

◆ format_vhost_trace()

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

Definition at line 210 of file vhost_user_inline.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_guest_mem()

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

Definition at line 21 of file vhost_user_inline.h.

+ Here is the caller graph for this function:

◆ map_user_mem()

static_always_inline void* map_user_mem ( vhost_user_intf_t vui,
uword  addr 
)

Definition at line 156 of file vhost_user_inline.h.

+ Here is the caller graph for this function:

◆ vhost_user_log_dirty_pages_2()

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 175 of file vhost_user_inline.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vhost_user_send_call()

static_always_inline void vhost_user_send_call ( vlib_main_t vm,
vhost_user_vring_t vq 
)

Definition at line 248 of file vhost_user_inline.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vui_is_link_up()

static_always_inline u8 vui_is_link_up ( vhost_user_intf_t vui)

Definition at line 268 of file vhost_user_inline.h.

+ Here is the caller graph for this function: