pc: acpi-build: create memory hotplug IO region dynamically
commit2c6b94d84e3677a40905c42604cf4cd4ef6f3a8e
authorIgor Mammedov <imammedo@redhat.com>
Wed, 18 Feb 2015 19:14:47 +0000 (18 19:14 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 12:04:18 +0000 (26 13:04 +0100)
tree35c9d6e757ddeaf1821ad775ca0814c92c7d6b19
parent8698c0c0ed1ff3751ef91b61c0006620d5431be4
pc: acpi-build: create memory hotplug IO region dynamically

it replaces a static complied in DSDT MMIO region
for memory hotplug with one created at runtime
leaving only truly static memory hotplug related
ASL bits in DSDT. And replaces template patching
of MEMORY_SLOTS_NUMBER value with ASL API created
named value.

Later it also would make easier to reuse current
ACPI memory hotplug on other targets.

Also later it would be possible to move remaining
memory hotplug ASL methods into build_ssdt() and
add all memory hotplug related AML into SSDT only
when memory hotplug is enabled, further reducing
ACPI tables blob if memory hotplug isn't used.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/acpi-dsdt-mem-hotplug.dsl
hw/i386/ssdt-misc.dsl