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 <fred.konrad@greensocs.com> Message-id: 1363624648-16906-3-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f1b24e840f
commit
cbd19063e7
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user