pub fn vfio_dma_map(&self, iova: u64, size: u64, user_addr: u64) -> Result<()> {
        let dma_map = vfio_iommu_type1_dma_map {
            argsz: mem::size_of::<vfio_iommu_type1_dma_map>() as u32,
            flags: VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE,
            vaddr: user_addr,
            iova,
            size,
        };

        vfio_syscall::map_dma(self, &dma_map)
    }
/// Map a region of guest memory regions into the vfio container's iommu table.
///
/// # Parameters
/// * iova: IO virtual address to mapping the memory.
/// * size: size of the memory region.
/// * user_addr: host virtual address for the guest memory region to map.
Map a region of guest memory regions into the vfio container's iommu table.
Map a region of guest memory regions into the vfio container ' s iommu table .
pub fn vfio_dma_map(&self, iova: u64, size: u64, user_addr: u64) -> Result<()> {
        let dma_map = vfio_iommu_type1_dma_map {
            argsz: mem::size_of::<vfio_iommu_type1_dma_map>() as u32,
            flags: VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE,
            vaddr: user_addr,
            iova,
            size,
        };
        vfio_syscall::map_dma(self, &dma_map)
    }
pub fn vfio_dma_map ( & self , iova : u64 , size : u64 , user_addr : u64 ) -> Result < ( ) > { let dma_map = vfio_iommu_type1_dma_map { argsz : mem :: size_of :: < vfio_iommu_type1_dma_map > ( ) as u32 , flags : VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE , vaddr : user_addr , iova , size , } ; vfio_syscall :: map_dma ( self , & dma_map ) }
Map a region of guest memory regions into the vfio container's iommu table.
Map a region of guest memory regions into the vfio container ' s iommu table .
&self
iova
u64
size
u64
user_addr
u64