On x86 this corresponds to a maximum aligned contiguous allocation of 8MB.
This can be overridden by architectures if need be.
Signed-off-by: Keir Fraser <keir@xensource.com>
#define ALLOC_DOM_DMA 1
-/* Up to 2^20 pages can be allocated at once. */
-#define MAX_ORDER 20
+#ifdef CONFIG_PAGEALLOC_MAX_ORDER
+#define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER
+#else
+#define MAX_ORDER 11 /* 2^11 contiguous pages */
+#endif
/* Automatic page scrubbing for dead domains. */
extern struct list_head page_scrub_list;