]> git.proxmox.com Git - mirror_qemu.git/commit
pcihp: add ACPI PCI hotplug specific is_hotpluggable_bus() callback
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 Mar 2023 16:15:43 +0000 (17:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:39:00 +0000 (12:39 -0500)
commitf18e29fc90cf271bae0c671151d0f55bd7649d52
treeb3e1d73e597ffacedb56fcf0cf9f2cf6f8da471a
parent6536e427ce490d1d57e9d4369f1765f9f1a85310
pcihp: add ACPI PCI hotplug specific is_hotpluggable_bus() callback

Provide pcihp specific callback to check if bus is hotpluggable
and consolidate its scattered hotplug criteria there.
While at it clean up no longer needed
   qbus_set_hotplug_handler(BUS(bus), NULL)
workarounds since callback makes qbus_is_hotpluggable() return
correct answer even if hotplug_handler is set on bus.

PS:
see ("pci: fix 'hotplugglable' property behavior") for details
why callback was introduced.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20230302161543.286002-35-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/acpi-pci-hotplug-stub.c
hw/acpi/ich9.c
hw/acpi/pcihp.c
hw/acpi/piix4.c
hw/isa/lpc_ich9.c
include/hw/acpi/ich9.h
include/hw/acpi/pcihp.h