[PATCH] hw/acpi: increase default size for rsdp file

shenjiatong posted 1 patch 5 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240613093345.4020-1-yshxxsjt715@163.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>
hw/acpi/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] hw/acpi: increase default size for rsdp file
Posted by shenjiatong 5 months, 2 weeks ago
From: shenjiatong <yshxxsjt715@gmail.com>

Size of RSDP file will be different on an OS
configured with PAGE_SIZE of 64 KiB. This will
eventually blocks live migration from a different
hosts which has the same haredware spec. So increase
this default max size to 0x10000 (64 KiB).

Signed-off-by: shenjiatong <yshxxsjt715@gmail.com>
---
 hw/acpi/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/acpi/utils.c b/hw/acpi/utils.c
index 0c486ea29f..85f6ff36f1 100644
--- a/hw/acpi/utils.c
+++ b/hw/acpi/utils.c
@@ -37,7 +37,7 @@ MemoryRegion *acpi_add_rom_blob(FWCfgCallback update, void *opaque,
     } else if (!strcmp(name, ACPI_BUILD_LOADER_FILE)) {
         max_size = 0x10000;
     } else if (!strcmp(name, ACPI_BUILD_RSDP_FILE)) {
-        max_size = 0x1000;
+        max_size = 0x10000;
     } else {
         g_assert_not_reached();
     }
-- 
2.17.1