aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-17 15:52:18 +0000
committerGitHub <noreply@github.com>2020-12-17 15:52:18 +0000
commita764a3d66eb5a04dea769be15d88ef0ac4e5a5ea (patch)
treee78b28a2ec436ff9550bcaea765683311bcb7989 /include
parentff70ca1a9f97feae62e326eca39624c13aa8117f (diff)
downloadlibvfio-user-a764a3d66eb5a04dea769be15d88ef0ac4e5a5ea.zip
libvfio-user-a764a3d66eb5a04dea769be15d88ef0ac4e5a5ea.tar.gz
libvfio-user-a764a3d66eb5a04dea769be15d88ef0ac4e5a5ea.tar.bz2
add mappable bit in DMA segment (#215)
remove duplicate code for initializing DMA segment, mark DMA segment whether it's mappable, plus basic unit test for dma_addr_to_sg Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 89e1c85..a39b5f4 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -67,6 +67,7 @@ typedef struct {
int region; /* TODO replace region and length with struct iovec */
int length;
uint64_t offset;
+ bool mappable;
} dma_sg_t;
typedef struct vfu_ctx vfu_ctx_t;