From d965f6e6a1e58e35cc496c0c026eded5a1628fef Mon Sep 17 00:00:00 2001 From: Shuo A Liu Date: Tue, 8 Jun 2021 10:13:22 +0800 Subject: [PATCH] hv: Enlarge E820_MAX_ENTRIES to 64 e820_alloc_memory() splits one E820 entry into two entries. With vEPT enabled, e820_alloc_memory() is called one more. On some platforms, the e820 entries might exceed 32. Enlarge E820_MAX_ENTRIES to 64. Please note, it must be less than 128 due to constrain of zeropage. Linux kernel defines it as 128. Tracked-On: #6168 Signed-off-by: Shuo A Liu Acked-by: Eddie Dong --- hypervisor/include/arch/x86/asm/e820.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/include/arch/x86/asm/e820.h b/hypervisor/include/arch/x86/asm/e820.h index 658916e9f..a4cac72af 100644 --- a/hypervisor/include/arch/x86/asm/e820.h +++ b/hypervisor/include/arch/x86/asm/e820.h @@ -16,7 +16,7 @@ #define E820_TYPE_ACPI_NVS 4U /* EFI 10 */ #define E820_TYPE_UNUSABLE 5U /* EFI 8 */ -#define E820_MAX_ENTRIES 32U +#define E820_MAX_ENTRIES 64U /** Defines a single entry in an E820 memory map. */ struct e820_entry {