diff options
author | Marcel Apfelbaum <marcel@redhat.com> | 2016-07-17 19:53:10 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-29 00:07:09 +0300 |
commit | 7b346c742cd95816c1d5badcc88e18bb95ace08c (patch) | |
tree | f310813fa0375683f64037f912354ccc35102786 /hw/pci-bridge | |
parent | 2c533c5479f0f712578422529b20651f01adb0f4 (diff) | |
download | qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.zip qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.tar.gz qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.tar.bz2 |
hw/pxb: declare pxb devices as not hot-pluggable
Prevent future issues when hotplug will work for devices
attached to pxbs.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-bridge')
-rw-r--r-- | hw/pci-bridge/pci_expander_bridge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c index ab86121..b4f8ca2 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -310,6 +310,7 @@ static void pxb_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Expander Bridge"; dc->props = pxb_dev_properties; + dc->hotpluggable = false; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } @@ -343,6 +344,7 @@ static void pxb_pcie_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Express Expander Bridge"; dc->props = pxb_dev_properties; + dc->hotpluggable = false; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } |