diff options
Diffstat (limited to 'lib/private.h')
-rw-r--r-- | lib/private.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private.h b/lib/private.h index c9a8af7..c7c0627 100644 --- a/lib/private.h +++ b/lib/private.h @@ -35,8 +35,16 @@ #include <errno.h> -#include "pci_caps.h" #include "common.h" +#include "pci_caps.h" + +/* + * The main reason we limit the size of an individual DMA region from the client + * is to limit the size of the dirty bitmaps: this corresponds to 256MB at a 4K + * page size. + */ +#define MAX_DMA_SIZE (8 * ONE_TB) +#define MAX_DMA_REGIONS 16 #define SERVER_MAX_MSG_SIZE 65536 |