On Tue, 3 May 2022 at 17:54, annie li <annie.li@oracle.com> wrote:
Adding maintainers into the CC list...
On 5/2/2022 5:05 PM, annie li wrote:
Hello
I am wondering if anyone will review this patch please? Any comments are welcome.
Thanks
Annie
On 4/15/2022 5:15 PM, annie li wrote:
The current ACPI Reclaim memory size is set as 0x10(64k). The ACPI table size will be increased if the memory slots' number of the guest gets increased. In the guest with more memory slots, the ACPI Reclaim memory size may not be sufficient for hibernation. This may cause resume failure of the hibernated guest that was booted up with a fresh copied writable OVMF_VARS file. However, the failure doesn't happen in following hibernation/resume cycles.
The ACPI_MAX_RAM_SLOTS is set as 256 in the current QEMU. With ACPI_MAX_RAM_SLOTS, 18 pages are required to be allocated in ACPI Reclaim memory. However, due to the 0x10(16 pages) setting, 2 extra pages will be allocated in other space. This may break the hibernation/resume in the above scenario.
This patch increases the ACPI Reclaim memory size to 0x12, i.e. PcdMemoryTypeEfiACPIReclaimMemory is set as 0x12(18 pages).