The series adds hotplug support to legacy PCI buses for Q35 machines. The ACPI hotplug code is emitted if at least one legacy pci-bridge is present.
This series is mostly based on past Marcel's series https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg05681.html, but rebased on current master with some minor changes according to current codebase. ACPI code emission approach used in this series can be called "static", because it checkswhether a bridge exists only at initial DSDT generation moment. The main goal is to enable AML PCI hotplug-related code to be generated dynamically. In other words, the bridge plugged in - a new acpi definition block is loaded (using LoadTable method). This is necessary for PCIE-PCI bridge hotplugging feature. Aleksandr Bezzubikov (6): hw/acpi: remove dead acpi code hw/acpi: simplify dsdt building code hw/acpi: fix pcihp io initialization hw/acpi: prepare pci hotplug IO for ich9 hw/acpi: extend acpi pci hotplug support for pci express hw/ich9: enable acpi pci hotplug hw/acpi/ich9.c | 31 +++++++++++++ hw/i386/acpi-build.c | 116 ++++++++++++++++++++++++------------------------- hw/isa/lpc_ich9.c | 12 +++++ include/hw/acpi/ich9.h | 4 ++ include/hw/i386/pc.h | 7 ++- 5 files changed, 111 insertions(+), 59 deletions(-) -- 2.7.4