pub fn vfio_dma_unmap(&self, iova: u64, size: u64) -> Result<()> {
        let mut dma_unmap = vfio_iommu_type1_dma_unmap {
            argsz: mem::size_of::<vfio_iommu_type1_dma_unmap>() as u32,
            flags: 0,
            iova,
            size,
        };

        vfio_syscall::unmap_dma(self, &mut dma_unmap)?;
        if dma_unmap.size != size {
            return Err(VfioError::IommuDmaUnmap);
        }

        Ok(())
    }
/// Unmap 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.
Unmap a region of guest memory regions into the vfio container's iommu table.
Unmap a region of guest memory regions into the vfio container ' s iommu table .
pub fn vfio_dma_unmap(&self, iova: u64, size: u64) -> Result<()> {
        let mut dma_unmap = vfio_iommu_type1_dma_unmap {
            argsz: mem::size_of::<vfio_iommu_type1_dma_unmap>() as u32,
            flags: 0,
            iova,
            size,
        };
        vfio_syscall::unmap_dma(self, &mut dma_unmap)?;
        if dma_unmap.size != size {
            return Err(VfioError::IommuDmaUnmap);
        }
        Ok(())
    }
pub fn vfio_dma_unmap ( & self , iova : u64 , size : u64 ) -> Result < ( ) > { let mut dma_unmap = vfio_iommu_type1_dma_unmap { argsz : mem :: size_of :: < vfio_iommu_type1_dma_unmap > ( ) as u32 , flags : 0 , iova , size , } ; vfio_syscall :: unmap_dma ( self , & mut dma_unmap ) ? ; if dma_unmap . size != size { return Err ( VfioError :: IommuDmaUnmap ) ; } Ok ( ( ) ) }
Unmap a region of guest memory regions into the vfio container's iommu table.
Unmap a region of guest memory regions into the vfio container ' s iommu table .
&self
iova
u64
size
u64