aboutsummaryrefslogtreecommitdiff
path: root/hw/i386
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-09-26 09:28:17 +0000
committerAndreas Färber <afaerber@suse.de>2014-10-15 05:03:13 +0200
commit39b888bd88296b178082b5a2e4c6e82fcbd877f8 (patch)
treec5fac970065e85e7fa65d81f64e3ef1271555cc7 /hw/i386
parent49cec38591d6fef833cf12873fb4ff9748d0f08b (diff)
downloadqemu-39b888bd88296b178082b5a2e4c6e82fcbd877f8.zip
qemu-39b888bd88296b178082b5a2e4c6e82fcbd877f8.tar.gz
qemu-39b888bd88296b178082b5a2e4c6e82fcbd877f8.tar.bz2
Access BusState::allow_hotplug using wraper qbus_is_hotpluggable()
It would allow to transparently switch detection whether Bus is hotpluggable from allow_hotplug field to hotplug_handler link and to drop allow_hotplug field once all users are converted to hotplug handler API. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/acpi-build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index a313321..00be4bb 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -774,7 +774,7 @@ static void *acpi_set_bsel(PCIBus *bus, void *opaque)
unsigned *bsel_alloc = opaque;
unsigned *bus_bsel;
- if (bus->qbus.allow_hotplug) {
+ if (qbus_is_hotpluggable(BUS(bus))) {
bus_bsel = g_malloc(sizeof *bus_bsel);
*bus_bsel = (*bsel_alloc)++;