Increase BUILD_MAX_E820 to 128

For platforms with high number of numa nodes, 32 e820 entries are not
enough. Linux kernel sets the maximum e820 entries to a base value of
128. Setting BUILD_MAX_E820 to 128 to be in sync with this base value.

Signed-off-by: Tony Titus <>
Message-ID: <>
Signed-off-by: Gerd Hoffmann <>
diff --git a/src/config.h b/src/config.h
index 9abe355..16952eb 100644
--- a/src/config.h
+++ b/src/config.h
@@ -15,7 +15,7 @@
 // Maximum number of map entries in the e820 map
-#define BUILD_MAX_E820 32
+#define BUILD_MAX_E820 128
 // Space to reserve in high-memory for tables
 #define BUILD_MIN_HIGHTABLE (256*1024)
 #define BUILD_MAX_HIGHTABLE (16*1024*1024)