[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH V8 07/15] virtio-s390-device : create a virtio-s
From: |
fred . konrad |
Subject: |
[Qemu-devel] [RFC PATCH V8 07/15] virtio-s390-device : create a virtio-s390-bus during init. |
Date: |
Wed, 19 Dec 2012 10:53:33 +0100 |
From: KONRAD Frederic <address@hidden>
Create a virtio-s390-bus during init, so the refactored virtio device can be
connected.
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 720dbb9..849adab 100644
--- a/hw/s390-virtio-bus.c
+++ b/hw/s390-virtio-bus.c
@@ -490,6 +490,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 7c5a945..08e68c2 100644
--- a/hw/s390-virtio-bus.h
+++ b/hw/s390-virtio-bus.h
@@ -90,6 +90,7 @@ struct VirtIOS390Device {
virtio_net_conf net;
VirtIOSCSIConf scsi;
VirtIORNGConf rng;
+ VirtioBusState *bus;
};
typedef struct VirtIOS390Bus {
--
1.7.11.7
- [Qemu-devel] [RFC PATCH V8 04/15] virtio-pci : Refactor virtio-pci device., (continued)
- [Qemu-devel] [RFC PATCH V8 04/15] virtio-pci : Refactor virtio-pci device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 05/15] virtio-device : Refactor virtio-device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 06/15] virtio-s390-bus : Add virtio-s390-bus., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 09/15] virtio-blk-pci : Switch to new API., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 07/15] virtio-s390-device : create a virtio-s390-bus during init.,
fred . konrad <=
- [Qemu-devel] [RFC PATCH V8 10/15] virtio-blk-s390 : Switch to the new API., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 12/15] virtio-blk : cleanup : remove qdev field., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 14/15] virtio : Remove VirtIOBindings., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 15/15] virtio : cleanup : init and exit function., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 11/15] virtio-blk : cleanup : use QOM cast., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 13/15] virtio : Remove the function pointer., fred . konrad, 2012/12/19