Serves to save a bit of memory, and is helpful for debugging (making sure tables come from qemu).
Memory stats: Enabled: Total size: 128776 Fixed: 59100 Free: 2296 (used 98.2% of 128KiB rom) Disabled: Total size: 119836 Fixed: 58996 Free: 11236 (used 91.4% of 128KiB rom)
Signed-off-by: Michael S. Tsirkin mst@redhat.com --- src/fw/acpi.c | 3 +++ src/Kconfig | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/fw/acpi.c b/src/fw/acpi.c index 0fb8007..31404fa 100644 --- a/src/fw/acpi.c +++ b/src/fw/acpi.c @@ -640,6 +640,9 @@ acpi_setup(void) warn_internalerror(); }
+ if (!CONFIG_ACPI_BUILTIN) + return; + dprintf(3, "generate ACPI tables\n");
// This code is hardcoded for PIIX4 Power Management device. diff --git a/src/Kconfig b/src/Kconfig index b5f0d39..e405664 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -424,10 +424,20 @@ menu "BIOS Tables" This option can be disabled for QEMU 1.6 and older to save some space in the ROM file. If unsure, say Y. + config ACPI_BUILTIN + bool "Include built-in ACPI tables" + default y + depends on ACPI + help + Include built-in ACPI tables in BIOS. + Required for QEMU 1.6 and older. + This option can be disabled for QEMU 1.7 and newer + to save some space in the ROM file. + If unsure, say Y. config ACPI_DSDT bool "Include default ACPI DSDT" default y - depends on ACPI + depends on ACPI && ACPI_BUILTIN help Include default DSDT ACPI table in BIOS. Required for QEMU 1.3 and older.