aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-05-26 14:20:47 +0100
committerGitHub <noreply@github.com>2021-05-26 14:20:47 +0100
commitaee8c0fc124827241ebbe355e3ef737593142e1a (patch)
treec19a754059ae42f47be14cb32602570a1a528ca2 /include
parent0a04aeae6ae904762c3abafb8de9708a9728d503 (diff)
downloadlibvfio-user-aee8c0fc124827241ebbe355e3ef737593142e1a.zip
libvfio-user-aee8c0fc124827241ebbe355e3ef737593142e1a.tar.gz
libvfio-user-aee8c0fc124827241ebbe355e3ef737593142e1a.tar.bz2
support VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP (#521)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/vfio-user.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vfio-user.h b/include/vfio-user.h
index 3994abc..fa3aba8 100644
--- a/include/vfio-user.h
+++ b/include/vfio-user.h
@@ -119,6 +119,9 @@ struct vfio_user_dma_region {
uint64_t size;
uint64_t offset;
uint32_t prot;
+#ifndef VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP
+#define VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP (1 << 0)
+#endif
#define VFIO_USER_F_DMA_REGION_MAPPABLE (1 << 0)
uint32_t flags;
struct vfio_user_bitmap bitmap[];