From 9c37a1813b65899ad3b0288a51b0cf1c372ee775 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 1 Jun 2021 15:14:46 +0100 Subject: 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 Reviewed-by: Thanos Makatos --- include/libvfio-user.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') 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; -- cgit v1.1