From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsy2E-0001vD-I6 for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:57:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tsy2D-0007ad-M4 for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:57:46 -0500 Received: from greensocs.com ([87.106.252.221]:50207 helo=s15328186.onlinehome-server.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsy2D-0007Zb-Fa for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:57:45 -0500 From: fred.konrad@greensocs.com Date: Wed, 9 Jan 2013 16:56:59 +0100 Message-Id: <1357747019-20580-8-git-send-email-fred.konrad@greensocs.com> In-Reply-To: <1357747019-20580-1-git-send-email-fred.konrad@greensocs.com> References: <1357747019-20580-1-git-send-email-fred.konrad@greensocs.com> Subject: [Qemu-devel] [PATCH V2 7/7] virtio-s390-device: create a virtio-s390-bus during init. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aliguori@us.ibm.com Cc: kwolf@redhat.com, peter.maydell@linaro.org, e.voevodin@samsung.com, mst@redhat.com, mark.burton@greensocs.com, agraf@suse.de, amit.shah@redhat.com, aneesh.kumar@linux.vnet.ibm.com, stefanha@redhat.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, afaerber@suse.de, fred.konrad@greensocs.com From: KONRAD Frederic A virtio-s390-bus is created during the init. So one VirtIODevice can be connected on the virtio-s390-device through this bus. Signed-off-by: KONRAD Frederic --- hw/s390-virtio-bus.c | 2 ++ hw/s390-virtio-bus.h | 1 + 2 files changed, 3 insertions(+) diff --git a/hw/s390-virtio-bus.c b/hw/s390-virtio-bus.c index ad0f21d..88dfbc9 100644 --- a/hw/s390-virtio-bus.c +++ b/hw/s390-virtio-bus.c @@ -503,6 +503,8 @@ static int s390_virtio_busdev_init(DeviceState *dev) VirtIOS390Device *_dev = (VirtIOS390Device *)dev; VirtIOS390DeviceClass *_info = VIRTIO_S390_DEVICE_GET_CLASS(dev); + _dev->bus = virtio_s390_bus_new(_dev); + return _info->init(_dev); } diff --git a/hw/s390-virtio-bus.h b/hw/s390-virtio-bus.h index d6260a2..1430f66 100644 --- a/hw/s390-virtio-bus.h +++ b/hw/s390-virtio-bus.h @@ -96,6 +96,7 @@ struct VirtIOS390Device { virtio_net_conf net; VirtIOSCSIConf scsi; VirtIORNGConf rng; + VirtioBusState *bus; }; typedef struct VirtIOS390Bus { -- 1.7.11.7