Skip to content

Commit c0cc6b0

Browse files
committed
bump MAX_DMA_REGIONS
Some perfectly reasonable VMs exceed 16 VMs; bump this up somewhat. Signed-off-by: John Levon <[email protected]>
1 parent c4ce707 commit c0cc6b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/private.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#else
5151
#define MAX_DMA_SIZE UINT32_MAX /* FIXME check for __i386__ etc? */
5252
#endif
53-
#define MAX_DMA_REGIONS 16
53+
#define MAX_DMA_REGIONS 64
5454

5555
#define SERVER_MAX_DATA_XFER_SIZE (VFIO_USER_DEFAULT_MAX_DATA_XFER_SIZE)
5656

test/py/libvfio_user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def is_32bit():
160160
return (1 << 31) - 1 == sys.maxsize
161161

162162

163-
MAX_DMA_REGIONS = 16
163+
MAX_DMA_REGIONS = 64
164164
# FIXME get from libvfio-user.h
165165
MAX_DMA_SIZE = sys.maxsize << 1 if is_32bit() else (8 * ONE_TB)
166166

0 commit comments

Comments
 (0)