[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v10 02/11] virtio-x-bus: fix allow_hotplug assertion
From: |
fred . konrad |
Subject: |
[Qemu-devel] [PATCH v10 02/11] virtio-x-bus: fix allow_hotplug assertion. |
Date: |
Mon, 18 Mar 2013 17:37:19 +0100 |
From: KONRAD Frederic <address@hidden>
This set allow_hotplug for each existing virtio-x-bus, allowing the
refactored devices to be hot pluggable.
Signed-off-by: KONRAD Frederic <address@hidden>
---
hw/s390x/s390-virtio-bus.c | 2 +-
hw/s390x/virtio-ccw.c | 2 +-
hw/virtio-pci.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c
index d9b7f83..8d4fd72 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 d4361f6..d80de67 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 39c1966..c795cc6 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)
--
1.7.11.7
- [Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 02/11] virtio-x-bus: fix allow_hotplug assertion.,
fred . konrad <=
- [Qemu-devel] [PATCH v10 01/11] virtio: make virtio device's structures public., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 06/11] virtio-blk-pci: switch to new API., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 08/11] virtio-blk-ccw switch to new API., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 05/11] virtio-blk: add the virtio-blk device., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 09/11] virtio-blk: cleanup: init and exit functions., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 07/11] virtio-blk-s390: switch to the new API., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 04/11] virtio-blk: don't use pointer for configuration., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 03/11] virtio-pci: fix hot unplug., fred . konrad, 2013/03/18
- [Qemu-devel] [PATCH v10 10/11] virtio-blk: cleanup: QOM cast, fred . konrad, 2013/03/18
- Re: [Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring., Cornelia Huck, 2013/03/18