aboutsummaryrefslogtreecommitdiff
path: root/include/libvfio-user.h
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-06-09 11:15:34 +0100
committerGitHub <noreply@github.com>2021-06-09 11:15:34 +0100
commit1abe697341061a6c16e4a5d28b20b5efa7035a81 (patch)
treed034333d573cf5228a03cb9466540a822a60ee20 /include/libvfio-user.h
parent57684de8240fce4a277301a86a803842338762af (diff)
downloadlibvfio-user-1abe697341061a6c16e4a5d28b20b5efa7035a81.zip
libvfio-user-1abe697341061a6c16e4a5d28b20b5efa7035a81.tar.gz
libvfio-user-1abe697341061a6c16e4a5d28b20b5efa7035a81.tar.bz2
drop mappable flag from DMA map (#553)
The flags field belongs to VFIO and it's not a good idea to reuse as new VFIO flags can break things. Instead, we derive whether or not a region is mappable if a file descriptor is passed. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'include/libvfio-user.h')
-rw-r--r--include/libvfio-user.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 9c2628a..e05cacf 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -340,8 +340,7 @@ vfu_setup_device_reset_cb(vfu_ctx_t *vfu_ctx, vfu_reset_cb_t *reset);
/*
* Info for a guest DMA region. @iova is always valid; the other parameters
- * will only be set if the guest DMA region is VFIO_USER_F_DMA_REGION_MAPPABLE,
- * and a file descriptor has been passed across the vfio-user socket.
+ * will only be set if the guest DMA region is mappable.
*
* @iova: guest DMA range. This is the guest physical range (as we don't
* support vIOMMU) that the guest registers for DMA, via a VFIO_USER_DMA_MAP