From: KONRAD Frederic Date: Mon, 18 Mar 2013 16:37:19 +0000 (+0100) Subject: virtio-x-bus: fix allow_hotplug assertion. X-Git-Tag: v1.5.0-rc0~463 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbd19063e75c64ac5e4029f76198c7ba65a63b00;p=thirdparty%2Fqemu.git virtio-x-bus: fix allow_hotplug assertion. This set allow_hotplug for each existing virtio-x-bus, allowing the refactored devices to be hot pluggable. Signed-off-by: KONRAD Frederic Message-id: 1363624648-16906-3-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori --- diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c index d9b7f83878e..8d4fd72c806 100644 --- a/hw/s390x/s390-virtio-bus.c +++ b/hw/s390x/s390-virtio-bus.c @@ -588,7 +588,7 @@ void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev) BusState *qbus; qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_S390_BUS, qdev, NULL); qbus = BUS(bus); - qbus->allow_hotplug = 0; + qbus->allow_hotplug = 1; } static void virtio_s390_bus_class_init(ObjectClass *klass, void *data) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index d4361f6e3e3..d80de67ff5b 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -982,7 +982,7 @@ void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev) qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_CCW_BUS, qdev, NULL); qbus = BUS(bus); - qbus->allow_hotplug = 0; + qbus->allow_hotplug = 1; } static void virtio_ccw_bus_class_init(ObjectClass *klass, void *data) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 39c1966cfc1..c795cc63390 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -1484,7 +1484,7 @@ void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev) BusState *qbus; qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_PCI_BUS, qdev, NULL); qbus = BUS(bus); - qbus->allow_hotplug = 0; + qbus->allow_hotplug = 1; } static void virtio_pci_bus_class_init(ObjectClass *klass, void *data)