提交 11e9235b 编写于 作者: K KONRAD Frederic 提交者: Anthony Liguori

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: NKONRAD Frederic <fred.konrad@greensocs.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 ea35d4f1
...@@ -503,6 +503,8 @@ static int s390_virtio_busdev_init(DeviceState *dev) ...@@ -503,6 +503,8 @@ static int s390_virtio_busdev_init(DeviceState *dev)
VirtIOS390Device *_dev = (VirtIOS390Device *)dev; VirtIOS390Device *_dev = (VirtIOS390Device *)dev;
VirtIOS390DeviceClass *_info = VIRTIO_S390_DEVICE_GET_CLASS(dev); VirtIOS390DeviceClass *_info = VIRTIO_S390_DEVICE_GET_CLASS(dev);
virtio_s390_bus_new(&_dev->bus, _dev);
return _info->init(_dev); return _info->init(_dev);
} }
......
...@@ -96,6 +96,7 @@ struct VirtIOS390Device { ...@@ -96,6 +96,7 @@ struct VirtIOS390Device {
virtio_net_conf net; virtio_net_conf net;
VirtIOSCSIConf scsi; VirtIOSCSIConf scsi;
VirtIORNGConf rng; VirtIORNGConf rng;
VirtioBusState bus;
}; };
typedef struct VirtIOS390Bus { typedef struct VirtIOS390Bus {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册