FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
vfio.c File Reference
+ Include dependency graph for vfio.c:

Go to the source code of this file.

Macros

#define VFIO_NOIOMMU_IOMMU   8
 

Functions

clib_error_tvfio_map_physmem_page (vlib_main_t *vm, void *addr)
 
static linux_pci_vfio_iommu_group_tget_vfio_iommu_group (int group)
 
static clib_error_topen_vfio_iommu_group (int group, int is_noiommu)
 
clib_error_tlinux_vfio_group_get_device_fd (vlib_pci_addr_t *addr, int *fdp, int *is_noiommu)
 
clib_error_tlinux_vfio_init (vlib_main_t *vm)
 
u8format_vfio_region_info (u8 *s, va_list *args)
 

Variables

linux_vfio_main_t vfio_main
 

Macro Definition Documentation

◆ VFIO_NOIOMMU_IOMMU

#define VFIO_NOIOMMU_IOMMU   8

Definition at line 32 of file vfio.c.

Function Documentation

◆ format_vfio_region_info()

u8* format_vfio_region_info ( u8 s,
va_list *  args 
)

Definition at line 251 of file vfio.c.

+ Here is the call graph for this function:

◆ get_vfio_iommu_group()

static linux_pci_vfio_iommu_group_t* get_vfio_iommu_group ( int  group)
static

Definition at line 80 of file vfio.c.

+ Here is the caller graph for this function:

◆ linux_vfio_group_get_device_fd()

clib_error_t* linux_vfio_group_get_device_fd ( vlib_pci_addr_t *  addr,
int *  fdp,
int *  is_noiommu 
)

Definition at line 177 of file vfio.c.

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

◆ linux_vfio_init()

clib_error_t* linux_vfio_init ( vlib_main_t vm)

Definition at line 240 of file vfio.c.

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

◆ open_vfio_iommu_group()

static clib_error_t* open_vfio_iommu_group ( int  group,
int  is_noiommu 
)
static

Definition at line 91 of file vfio.c.

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

◆ vfio_map_physmem_page()

clib_error_t* vfio_map_physmem_page ( vlib_main_t vm,
void *  addr 
)

Definition at line 38 of file vfio.c.

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

Variable Documentation

◆ vfio_main

linux_vfio_main_t vfio_main

Definition at line 35 of file vfio.c.