bump MAX_DMA_REGIONS (#800) Some perfectly reasonable VMs exceed 16 VMs; bump this up somewhat. Signed-off-by: John Levon <john.levon@nutanix.com>
diff --git a/lib/private.h b/lib/private.h index 6e0170e..e3d97b3 100644 --- a/lib/private.h +++ b/lib/private.h
@@ -50,7 +50,7 @@ #else #define MAX_DMA_SIZE UINT32_MAX /* FIXME check for __i386__ etc? */ #endif -#define MAX_DMA_REGIONS 16 +#define MAX_DMA_REGIONS 64 #define SERVER_MAX_DATA_XFER_SIZE (VFIO_USER_DEFAULT_MAX_DATA_XFER_SIZE)
diff --git a/test/py/libvfio_user.py b/test/py/libvfio_user.py index 976590c..e68e126 100644 --- a/test/py/libvfio_user.py +++ b/test/py/libvfio_user.py
@@ -160,7 +160,7 @@ return (1 << 31) - 1 == sys.maxsize -MAX_DMA_REGIONS = 16 +MAX_DMA_REGIONS = 64 # FIXME get from libvfio-user.h MAX_DMA_SIZE = sys.maxsize << 1 if is_32bit() else (8 * ONE_TB)