From 874d524a1396e9bc27729e3d85f63a8c5509d63a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 7 Feb 2023 17:44:38 +0000 Subject: [PATCH] vfio_user: Add flags for DMA_UNMAP command Signed-off-by: Rob Bradford --- vfio_user/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vfio_user/src/lib.rs b/vfio_user/src/lib.rs index f3b9a78ad..4ba37022b 100644 --- a/vfio_user/src/lib.rs +++ b/vfio_user/src/lib.rs @@ -97,6 +97,11 @@ bitflags! { const WRITE_ONLY = 1 << 1; const READ_WRITE = Self::READ_ONLY.bits | Self::WRITE_ONLY.bits; } + + struct DmaUnmapFlags: u32 { + const GET_DIRTY_PAGE_INFO = 1 << 1; + const UNMAP_ALL = 1 << 2; + } } #[repr(C)]