diff options
author | KONRAD Frederic | 2013-01-15 00:08:06 +0100 |
---|---|---|
committer | Anthony Liguori | 2013-01-21 20:23:14 +0100 |
commit | 11e9235b1a88a98124fe005c93ade019d6a09c0b (patch) | |
tree | 1d71626c1eca56076265254ab9bdec41fe154a1e /hw/s390-virtio-bus.c | |
parent | virtio-s390-bus: add virtio-s390-bus. (diff) | |
download | qemu-11e9235b1a88a98124fe005c93ade019d6a09c0b.tar.gz qemu-11e9235b1a88a98124fe005c93ade019d6a09c0b.tar.xz qemu-11e9235b1a88a98124fe005c93ade019d6a09c0b.zip |
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 <fred.konrad@greensocs.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/s390-virtio-bus.c')
-rw-r--r-- | hw/s390-virtio-bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |