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 <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shuo A Liu 2021-06-08 10:13:22 +08:00 committed by wenlingz
parent c70b450ed3
commit 2325d83665

View File

@ -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 {