aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-06-01 15:14:46 +0100
committerGitHub <noreply@github.com>2021-06-01 15:14:46 +0100
commit9c37a1813b65899ad3b0288a51b0cf1c372ee775 (patch)
tree3cdf95f941ec40788ff64957542cd74c72c988f1 /include
parent96ec963075e721c939441eaf0b92ea2a24b65668 (diff)
downloadlibvfio-user-9c37a1813b65899ad3b0288a51b0cf1c372ee775.zip
libvfio-user-9c37a1813b65899ad3b0288a51b0cf1c372ee775.tar.gz
libvfio-user-9c37a1813b65899ad3b0288a51b0cf1c372ee775.tar.bz2
limit max DMA region size (#545)
Since the dirty bitmap in message replies is allocated based upon the maximum size of an individual region, add a limit (somewhat arbitrarily 8TiB, which is a bitmap size of 256MiB). Add a couple of basic tests on the two DMA limits. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 009ba83..c9e8ca2 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -58,8 +58,6 @@ extern "C" {
#define LIB_VFIO_USER_MAJOR 0
#define LIB_VFIO_USER_MINOR 1
-#define VFU_DMA_REGIONS 0x10
-
/* DMA addresses cannot be directly de-referenced. */
typedef void *vfu_dma_addr_t;