diff options
author | Marcel Apfelbaum | 2016-07-17 18:53:10 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-07-28 23:07:09 +0200 |
commit | 7b346c742cd95816c1d5badcc88e18bb95ace08c (patch) | |
tree | f310813fa0375683f64037f912354ccc35102786 /hw/pci-bridge/pci_expander_bridge.c | |
parent | hw/pcie-root-port: Fix PCIe root port initialization (diff) | |
download | qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.tar.gz qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.tar.xz qemu-7b346c742cd95816c1d5badcc88e18bb95ace08c.zip |
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/pci_expander_bridge.c')
-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 ab8612158d..b4f8ca275f 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); } |