changes since v1: - add BSEL property to root bus when in compatibility mode as result dropped "hw:acpi:pcihp: assume root PCI bus if bus has no ACPI_PCIHP_PROP_BSEL property" - rebasing on top of "pcihp: reduce number of device check events" added patch 3/4.
Reuses new pcihp code for handling legacy PCI hotplug in acpi/piix4_pm, which significantly reduces code duplication between piix4_pm and pcihp amd makes pcihp less dependend on piix4 specific details. It also allows cleaner rebase of generic hotplug refactoring, by not increasing code duplication since it will need to be done only for pcihp. Git tree for testing based on mst's PCI tree: https://github.com/imammedo/qemu/commits/pcihp_cleanup_v2 Igor Mammedov (4): hw:piix4:acpi: replace enable|disable_device() with oneliners hw:piix4:acpi: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR pcihp: make pci_read() mmio calback compatible with legacy ACPI hotplug hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug hw/acpi/pcihp.c | 52 +++++------- hw/acpi/piix4.c | 211 ++++++++--------------------------------------- include/hw/acpi/pcihp.h | 9 ++- 3 files changed, 61 insertions(+), 211 deletions(-)