qemu/hw/i386
Igor Mammedov 133a2da488 pc: acpi: generate AML only for PCI0 devices if PCI bridge hotplug is disabled
Fixes migration regression from QEMU-1.7 to a newer QEMUs.
SSDT table size in QEMU-1.7 doesn't change regardless of
a number of PCI bridge devices present at startup.

However in QEMU-2.0 since addition of hotplug on PCI bridges,
each PCI bridge adds ~1875 bytes to SSDT table, including
pc-i440fx-1.7 machine type where PCI bridge hotplug disabled
via compat property.
It breaks migration from "QEMU-1.7" to "QEMU-2.[01] -M pc-i440fx-1.7"
since RAMBlock size of ACPI tables on target becomes larger
then on source and migration fails with:

"Length mismatch: /rom@etc/acpi/tables: 2000 in != 3000"

error.

Fix this by generating AML only for PCI0 bus if
hotplug on PCI bridges is disabled and preserves PCI brigde
description in AML as it was done in QEMU-1.7 for pc-i440fx-1.7.

It will help to maintain size of SSDT static regardless of
number of PCI bridges on startup for pc-i440fx-1.7 machine type.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-07-29 12:26:12 +02:00
..
kvm Revert "kvmclock: Ensure time in migration never goes backward" 2014-07-18 15:28:03 +02:00
xen
Makefile.objs pc: acpi: do not hardcode preprocessor 2014-06-19 18:44:21 +03:00
acpi-build.c pc: acpi: generate AML only for PCI0 devices if PCI bridge hotplug is disabled 2014-07-29 12:26:12 +02:00
acpi-build.h
acpi-defs.h
acpi-dsdt-cpu-hotplug.dsl
acpi-dsdt-dbug.dsl
acpi-dsdt-hpet.dsl
acpi-dsdt-isa.dsl
acpi-dsdt-pci-crs.dsl
acpi-dsdt.dsl acpi-dsdt: procedurally generate _PRT 2014-07-28 23:02:39 +02:00
acpi-dsdt.hex.generated acpi-dsdt: procedurally generate _PRT 2014-07-28 23:02:39 +02:00
bios-linker-loader.c
bios-linker-loader.h
kvmvapic.c
multiboot.c
multiboot.h
pc.c pc & q35: Add new machine opt max-ram-below-4g 2014-06-23 18:02:41 +03:00
pc_piix.c pc: hack for migration compatibility from QEMU 2.0 2014-07-28 23:02:39 +02:00
pc_q35.c pc: hack for migration compatibility from QEMU 2.0 2014-07-28 23:02:39 +02:00
pc_sysfw.c
q35-acpi-dsdt.dsl pc: ACPI BIOS: make GPE.3 handle memory hotplug event on PIIX and Q35 machines 2014-06-19 16:41:52 +03:00
q35-acpi-dsdt.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
smbios.c
ssdt-mem.dsl pc: ACPI BIOS: implement memory hotplug interface 2014-06-19 16:41:51 +03:00
ssdt-mem.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-misc.dsl pc: ACPI BIOS: implement memory hotplug interface 2014-06-19 16:41:51 +03:00
ssdt-misc.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-pcihp.dsl
ssdt-pcihp.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00
ssdt-proc.dsl
ssdt-proc.hex.generated acpi: update generated files 2014-06-19 16:41:52 +03:00