From: fred.konrad@greensocs.com
To: qemu-devel@nongnu.org, aliguori@us.ibm.com
Cc: peter.maydell@linaro.org, mst@redhat.com,
mark.burton@greensocs.com, cornelia.huck@de.ibm.com,
afaerber@suse.de, fred.konrad@greensocs.com
Subject: [Qemu-devel] [PATCH v10 02/11] virtio-x-bus: fix allow_hotplug assertion.
Date: Mon, 18 Mar 2013 17:37:19 +0100 [thread overview]
Message-ID: <1363624648-16906-3-git-send-email-fred.konrad@greensocs.com> (raw)
In-Reply-To: <1363624648-16906-1-git-send-email-fred.konrad@greensocs.com>
From: KONRAD Frederic <fred.konrad@greensocs.com>
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>
---
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
next prev parent reply other threads:[~2013-03-18 16:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 16:37 [Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 01/11] virtio: make virtio device's structures public fred.konrad
2013-03-18 16:37 ` fred.konrad [this message]
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 03/11] virtio-pci: fix hot unplug fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 04/11] virtio-blk: don't use pointer for configuration fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 05/11] virtio-blk: add the virtio-blk device fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 06/11] virtio-blk-pci: switch to new API fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 07/11] virtio-blk-s390: switch to the " fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 08/11] virtio-blk-ccw switch to " fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 09/11] virtio-blk: cleanup: init and exit functions fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 10/11] virtio-blk: cleanup: QOM cast fred.konrad
2013-03-18 16:37 ` [Qemu-devel] [PATCH v10 11/11] virtio-blk: cleanup: remove qdev field fred.konrad
2013-03-18 17:01 ` [Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring Cornelia Huck
2013-03-18 17:04 ` KONRAD Frédéric
2013-03-19 1:38 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1363624648-16906-3-git-send-email-fred.konrad@greensocs.com \
--to=fred.konrad@greensocs.com \
--cc=afaerber@suse.de \
--cc=aliguori@us.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=mark.burton@greensocs.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).