[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC V9 07/12] virtio-s390-device : create a virtio-s390-bu
From: |
fred . konrad |
Subject: |
[Qemu-devel] [RFC V9 07/12] virtio-s390-device : create a virtio-s390-bus during init. |
Date: |
Thu, 3 Jan 2013 15:52:19 +0100 |
From: KONRAD Frederic <address@hidden>
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 <address@hidden>
---
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 67ecb3a..4e8471b 100644
--- a/hw/s390-virtio-bus.c
+++ b/hw/s390-virtio-bus.c
@@ -489,6 +489,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 d5a6f9b..c585888 100644
--- a/hw/s390-virtio-bus.h
+++ b/hw/s390-virtio-bus.h
@@ -92,6 +92,7 @@ struct VirtIOS390Device {
virtio_net_conf net;
VirtIOSCSIConf scsi;
VirtIORNGConf rng;
+ VirtioBusState *bus;
};
typedef struct VirtIOS390Bus {
--
1.7.11.7
- [Qemu-devel] [RFC V9 00/12] Virtio refactoring., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 01/12] qdev : add a maximum device allowed field for the bus., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 06/12] virtio-s390-bus : add virtio-s390-bus., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 03/12] virtio-pci-bus : introduce virtio-pci-bus., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 07/12] virtio-s390-device : create a virtio-s390-bus during init.,
fred . konrad <=
- [Qemu-devel] [RFC V9 05/12] virtio-device : refactor virtio-device., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 02/12] virtio-bus : introduce virtio-bus, fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 04/12] virtio-pci : refactor virtio-pci device., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 08/12] virtio-blk : add the virtio-blk device., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 10/12] virtio-blk-s390 : switch to the new API., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 09/12] virtio-blk-pci : switch to new API., fred . konrad, 2013/01/03
- [Qemu-devel] [RFC V9 11/12] virtio-blk : cleanup : use QOM cast., fred . konrad, 2013/01/03