From: KONRAD Frederic Date: Mon, 14 Jan 2013 23:08:06 +0000 (+0100) Subject: virtio-s390-device: create a virtio-s390-bus during init. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=11e9235b1a88a98124fe005c93ade019d6a09c0b;p=qemu.git virtio-s390-device: create a virtio-s390-bus during init. 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 Signed-off-by: Anthony Liguori --- diff --git a/hw/s390-virtio-bus.c b/hw/s390-virtio-bus.c index f78725fa91..b5d1f2be16 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); + virtio_s390_bus_new(&_dev->bus, _dev); + return _info->init(_dev); } diff --git a/hw/s390-virtio-bus.h b/hw/s390-virtio-bus.h index ffc6f88a89..438b37fd82 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 {