From: KONRAD Frederic
As we discuss with anthony and andreas, this structure must be showed to avoid
two memory allocations for virtio-scsi-x.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 15 ---
hw/virtio-scsi.h | 16
2 files changed, 16 insertions(+), 15
From: KONRAD Frederic
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer. It should be applied after all
the device have been refactored.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 2 --
hw/virtio-balloon.c| 8 --
From: KONRAD Frederic
This is a cleanup for s390-virtio-bus : the init function is called by
virtio-bus just after the device is plugged.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 38 --
1 file changed, 16 insertions(+), 22 deletions(-)
diff
From: KONRAD Frederic
As the virtio-9p-pci is switched to the new API, we can use QOM casts.
This shouldn't been applyied before virtio-9p-pci refactoring as its
VirtIODevice was not a QOM object.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 11 +++
hw/9pfs/virtio-9p
From: KONRAD Frederic
As the virtio-serial-pci and virtio-serial-s390 are switched to the new
API, we can use QOM casts. This shouldn't been applyied before
virtio-serial-pci and virtio-serial-s390 refactoring as their
VirtIODevice were not a QOM object.
Signed-off-by: KONRAD Frederic
---
hw/v
From: KONRAD Frederic
Clean the init and the exit function. It should be applied when all the device
have been refactored.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 15 ---
hw/virtio.h | 4
2 files changed, 19 deletions(-)
diff --git a/hw/virtio.c b/hw/virtio.c
index
From: KONRAD Frederic
Create virtio-serial which extends virtio-device, so it can be connected
on virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c| 8 +++-
hw/virtio-serial-bus.c | 100 +
hw/virtio-serial.h | 11 +
From: KONRAD Frederic
As the virtio-blk-pci and virtio-blk-s390 are switched to the new API,
we can use QOM casts and remove the separate init/exit for the old API.
This shouldn't been applyied before virtio-blk-pci and virtio-blk-s390
refactoring as their VirtIODevice were not a QOM object.
Sig
From: KONRAD Frederic
As the virtio-balloon-pci is switched to the new API, we can use QOM
casts. This shouldn't been applyied before virtio-balloon-pci
refactoring as its VirtIODevice was not a QOM object.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 39 +--
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
This shouldn't been applyied before virtio-serial-pci and
virtio-serial-s390 refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 94 --
From: KONRAD Frederic
Here the virtio-serial-pci is modified for the new API. The device
virtio-serial-pci extends virtio-pci. It creates and connects a
virtio-serial during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 123 +
From: KONRAD Frederic
Here the virtio-balloon-pci is modified for the new API. The device
virtio-balloon-pci extends virtio-pci. It creates and connects a
virtio-balloon during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 106 ++
From: KONRAD Frederic
Create virtio-balloon which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 99 +
hw/virtio-balloon.h | 4 +++
hw/virtio-pci.c | 6
3 files
From: KONRAD Frederic
Here the virtio-net-pci is modified for the new API. The device
virtio-net-pci extends virtio-pci. It creates and connects a virtio-net
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 108 +++---
From: KONRAD Frederic
As we discuss with anthony and andreas, this structure must be showed to avoid
two memory allocations for virtio-balloon-x.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 12
hw/virtio-balloon.h | 11 +++
2 files changed, 11 insertions(+), 1
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
This shouldn't been applyied before virtio-scsi-pci and virtio-scsi-s390
refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 59 ++--
1
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 97 ++---
hw/virtio-blk.h | 28 +
hw/virtio-pci.c | 18 ---
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 178 +++
hw/virtio-bus.h | 98 ++
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 18 --
2 files changed, 53 insertions(+), 2 de
From: KONRAD Frederic
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
---
hw/s390-virtio-bus.c | 2 ++
hw/s390-virtio-bus.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/hw/s39
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 19 +--
2 files changed, 54 insertions(+), 2 d
From: KONRAD Frederic
This add the virtio-s390-bus which extends virtio-bus. So one VirtIODevice can
be connected on this bus.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 28
hw/s390-virtio-bus.h | 13 +
2 files changed, 41 insertions(+)
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 67e58da..0363419 100644
--- a/hw/virtio-blk.c
+++ b/hw/virti
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 70 ++---
hw/virtio.h | 31 +++
2 files changed, 89 in
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 101 +++-
hw/virtio-blk.h | 19 +++
hw/virtio-pci.c | 7 ++--
3 files c
From: KONRAD Frederic
Create the virtio-pci device. This transport device will create a
virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 133
hw/virtio-pci.h | 18
2 fil
From: KONRAD Frederic
As the virtio-blk-pci and virtio-blk-s390 are switched to the new API,
we can use QOM casts and remove the separate init/exit for the old API.
This shouldn't been applyied before virtio-blk-pci and virtio-blk-s390
refactoring as their VirtIODevice were not a QOM object.
Sig
From: KONRAD Frederic
Here the virtio-blk-pci is modified for the new API. The device
virtio-blk-pci extends virtio-pci. It creates and connects a virtio-blk
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 113 +++---
From: KONRAD Frederic
Here the virtio-blk-s390 is modified for the new API. The device
virtio-blk-s390 extends virtio-s390-device as before. It creates and
connects a virtio-blk during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 17 +
From: KONRAD Frederic
You can clone that from here :
git.greensocs.com/home/greensocs/git/qemu_virtio.git virtio_refactoring_rfc_v9
This new version fix the name issues with the function name (in virtio-bus)
and the initialisation of virtio-blk-x. If you're all ok with that, I will send
the full
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 178 +++
hw/virtio-bus.h | 98 ++
From: KONRAD Frederic
Add a max_dev field to BusState to specify the maximum amount of devices allowed
on the bus ( have no effect if max_dev=0 )
Signed-off-by: KONRAD Frederic
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 11 +++
2 files changed, 13 insertions(+)
diff --git a/hw
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 19 +--
2 files changed, 54 insertions(+), 2 d
From: KONRAD Frederic
This remove VirtIOBindings and use VirtioBusClass instead. It should be applied
when all the device have been refactored.
Signed-off-by: KONRAD Frederic
---
hw/virtio-bus.c | 20
hw/virtio-bus.h | 6 --
hw/virtio.c | 52 ++
From: KONRAD Frederic
Introduce virtio-s390-bus, which extends virtio-bus. It is used with s390
transport device.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 28
hw/s390-virtio-bus.h | 13 +
2 files changed, 41 insertions(+)
diff --git a/
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 101 +++-
hw/virtio-blk.h | 19 +++
hw/virtio-pci.c | 7 ++--
3 files c
From: KONRAD Frederic
Clean the init and the exit function. It should be applied when all the device
have been refactored.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 15 ---
hw/virtio.h | 4
2 files changed, 19 deletions(-)
diff --git a/hw/virtio.c b/hw/virtio.c
index
From: KONRAD Frederic
As the virtio-blk-pci is switched to the new API, we can use QOM casts and
remove the separate init for the old API. This shouldn't been applyied
before virtio-blk-pci refactoring and virtio-blk-s390 refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 117 ++
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 169 +++
hw/virtio-bus.h | 98 ++
From: KONRAD Frederic
Create a virtio-s390-bus during init, so the refactored virtio device can be
connected.
Signed-off-by: KONRAD Frederic
---
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
i
From: KONRAD Frederic
Add a max_dev field to BusState to specify the maximum amount of devices allowed
on the bus ( have no effect if max_dev=0 )
Signed-off-by: KONRAD Frederic
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 11 +++
2 files changed, 13 insertions(+)
diff --git a/hw
ded virtio_bus_reset().
* Added cast macros VIRTIO_BUS.
* Added virtio_bus_plug_device.
* Replaced the old-style "bus->qbus" by BUS() macro.
Fred.
KONRAD Frederic (15):
qdev : add a maximum device allowed field for the bus.
virtio-bus : Introduce virtio-bus
virtio-pci-bu
From: KONRAD Frederic
Here the virtio-blk-s390 is modified for the new API. The device virtio-blk-s390
extends virtio-s390-device. It creates and connects a virtio-blk during the
init.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 11 +--
1 file changed, 5 insertions(+), 6
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 70 ++---
hw/virtio.h | 31 +++
2 files changed, 89 in
From: KONRAD Frederic
The qdev field is not needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 93b9746..65932fd 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.
From: KONRAD Frederic
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer. It should be applied after all
the device have been refactored.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 5 -
hw/virtio-pci.c | 2 +-
hw/virtio.c | 41
From: KONRAD Frederic
Here the virtio-blk-pci is modified for the new API. The device virtio-blk-pci
extends virtio-pci. It creates and connects a virtio-blk during the init.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 106 +---
hw/v
From: KONRAD Frederic
Create the virtio-pci device. This transport device will create a
virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 130
hw/virtio-pci.h | 19 +
2 fi
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 107 +++-
hw/virtio-blk.h | 6
2 files changed, 104 insertions(+), 9 deleti
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 19 +--
2 files changed, 54 insertions(+), 2 d
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 50 +++---
hw/virtio.h | 28
2 files changed, 67 insertions(+
From: KONRAD Frederic
As the virtio-blk-pci is switched to the new API, we can use QOM casts and
remove the separate init for the old API.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 69 ++---
1 file changed, 26 insertions(+), 43 del
t ( License, Debug printf, naming convention,
...)
* Added get_virtio_device_id(), and remove the pci_id* from the VirtioBus
structure.
* Added virtio_bus_reset().
* Added cast macros VIRTIO_BUS.
* Added virtio_bus_plug_device.
* Replaced the old-style "bus->qbus" by
From: KONRAD Frederic
Create the virtio-pci device. This transport device will create a
virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 127
hw/virtio-pci.h | 19 +
2 fi
From: KONRAD Frederic
Here the virtio-blk-pci is modified for the new API. The device virtio-pci-blk
extends virtio-pci. It creates and connects a virtio-blk during the init.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 113 +++-
hw/v
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 120 +++
hw/virtio-bus.h | 83 ++
From: KONRAD Frederic
Add a max_dev field to BusState to specify the maximum amount of devices allowed
on the bus ( have no effect if max_dev=0 )
Signed-off-by: KONRAD Frederic
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 11 +++
2 files changed, 13 insertions(+)
diff --git a/hw
From: KONRAD Frederic
Create the virtio-pci device. This transport device will create a
virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 112
hw/virtio-pci.h | 14 +++
2 file
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 50 +++---
hw/virtio.h | 28
2 files changed, 67 insertions(+
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus. I suggest one step to refactor virtio-blk-pci, and one more to clean
virtio-blk.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 101 +
From: KONRAD Frederic
Add a max_dev field to BusState to specify the maximum amount of devices allowed
on the bus ( have no effect if max_dev=0 )
Signed-off-by: KONRAD Frederic
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 11 +++
2 files changed, 13 insertions(+)
diff --git a/hw
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 111 +++
hw/virtio-bus.h | 82 ++
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 19 +--
2 files changed, 54 insertions(+), 2 d
License, Debug printf, naming convention,
...)
* Added get_virtio_device_id(), and remove the pci_id* from the VirtioBus
structure.
* Added virtio_bus_reset().
* Added cast macros VIRTIO_BUS.
* Added virtio_bus_plug_device.
* Replaced the old-style "bus->qbus&quo
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class.
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 56
hw/virtio.h | 29 +
2 files changed, 85 inser
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 111 +++
hw/virtio-bus.h | 76 ++
e old-style "bus->qbus" by BUS() macro.
Fred.
KONRAD Frederic (6):
qdev : add a maximum device allowed field for the bus.
virtio-bus : Introduce virtio-bus
virtio-pci-bus : Introduce virtio-pci-bus.
virtio-pci : Refactor virtio-pci device.
virtio-device : Refactor virt
From: KONRAD Frederic
Create the virtio-pci device. This transport device will create a
virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 112
hw/virtio-pci.h | 14 +++
2 file
From: KONRAD Frederic
Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 170
hw/virtio-blk.h | 4 ++
2 files changed, 150 insertions(+), 24 deletio
From: KONRAD Frederic
Add a max_dev field to BusState to specify the maximum amount of devices allowed
on the bus ( have no effect if max_dev=0 )
Signed-off-by: KONRAD Frederic
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 11 +++
2 files changed, 13 insertions(+)
diff --git a/hw
From: KONRAD Frederic
Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 37 +
hw/virtio-pci.h | 19 +--
2 files changed, 54 insertions(+), 2 d
From: KONRAD Frederic
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 45 +
hw/virtio-pci.h | 19 +--
2 files changed, 62 insertions(+), 2 deletions(-)
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 71f4fb5..a73704d 100
From: KONRAD Frederic
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 61 +++
hw/virtio-blk.h | 16 ++
2 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index e25cc96..354788
From: KONRAD Frederic
Signed-off-by: KONRAD Frederic
---
hw/Makefile.objs |1 +
hw/virtio-bus.c | 114 ++
hw/virtio-bus.h | 78 +
3 files changed, 193 insertions(+), 0 deletions(-)
create mode 1006
From: KONRAD Frederic
Signed-off-by: KONRAD Frederic
---
hw/virtio.c | 28
hw/virtio.h | 27 +++
2 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/hw/virtio.c b/hw/virtio.c
index f40a8c5..1c72d17 100644
--- a/hw/virtio.c
+++
From: KONRAD Frederic
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 48 +++-
hw/virtio-pci.h | 15 +++
2 files changed, 62 insertions(+), 1 deletions(-)
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index a73704d..1fb1905 1006
nd remove the pci_id* from the VirtioBus
structure.
* Added virtio_bus_reset().
* Added cast macros VIRTIO_BUS.
* Added virtio_bus_plug_device.
* Replaced the old-style "bus->qbus" by BUS() macro.
Fred.
KONRAD Frederic (6):
qdev : add a maximum device allowed field for
From: KONRAD Frederic
Only one device can be connected to virtio-bus.
This patch add a field max_dev which is :
* the maximum amount of devices connected on the bus ( when
* max_dev!=0 ).
* have no effect ( when max_dev=0 ).
The function qbus_find_recursive is modified :
* to ret
From: KONRAD Frederic
This patch create VirtioBus which is abstract, we can create virtio-x-bus which
extends this virtio-bus.
The virtio-x-bus need to implement all the methods from the VirtioBusClass.
Signed-off-by: KONRAD Frederic
---
hw/virtio-bus.c | 118
From: KONRAD Frederic
Only one device can be connected to virtio-bus.
This patch add a field max_dev which is :
* the maximum amount of devices connected on the bus ( when
* max_dev!=0 ).
* have no effect ( when max_dev=0 ).
The function qbus_find_recursive is modified :
* to ret
cast macros VIRTIO_BUS.
* Added virtio_bus_plug_device.
* Replaced the old-style "bus->qbus" by BUS() macro.
Fred
KONRAD Frederic (2):
virtio-bus : Introduce virtio-bus
qbus : add a maximum device.
hw/qdev-core.h|1 +
hw/qdev-monitor.c |
From: KONRAD Frederic
This patch add a VirtioBus in the VirtIOPCIProxy structure. It creates a new
device : "virtio-pci" which init the VirtioBus. Two callback are written :
* void virtio_pci_init_cb(DeviceState *dev) to initialize the PCI interface
after the VirtIODevice init, it is a
From: KONRAD Frederic
This patch create a new VirtioBus, which can be added to Virtio transports like
virtio-pci, virtio-mmio,...
One VirtIODevice can be connected to this device, like virtio-blk in the 3rd
patch.
The VirtioBus shares through a VirtioBusInfo structure :
* two callbacks wit
From: KONRAD Frederic
This patch just add the virtio-blk device which can connect on a Virtio-Bus. The
initialization fail if no free VirtioBus are present.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 82 +
hw/virtio-blk.h | 10 +
.
git available here :
git://git.greensocs.com/qemu_virtio.git virtio_refactoring_2
or with http :
http://git.greensocs.com/?p=qemu_virtio.git;a=shortlog; \
h=refs/heads/virtio_refactoring_2
Fred
KONRAD Frederic (3):
virtio-bus : Introduce VirtioBus.
virtio-pci : add a virtio-bus i
From: KONRAD Frederic
This patch just add the virtio-blk device which can connect on a Virtio-Bus. The
initialization fail if no free VirtioBus are present.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 84 +
hw/virtio-blk.h | 7 +
From: KONRAD Frederic
This patch add a VirtioBus in the VirtIOPCIProxy structure. It creates a new
device : "virtio-pci" which init the VirtioBus. Two callback are written :
* void virtio_pci_init_cb(DeviceState *dev) to initialize the PCI interface
after the VirtIODevice init, it is a
From: KONRAD Frederic
This patch create a new VirtioBus, which can be added to Virtio transports like
virtio-pci, virtio-mmio,...
One VirtIODevice can be connected to this device, like virtio-blk in the 3rd
patch.
The VirtioBus shares through a VirtioBusInfo structure :
* two callbacks wit
Hi,
I submit this RFC to be sure I'm doing the right thing about the VirtioBus.
I push the patchset here :
git://git.greensocs.com/qemu_virtio.git virtio_refact
What I proposed to do :
* Introduce a new VirtioBus ( same way as scsi-bus.c ), with VirtIODevice
interface :
->
701 - 789 of 789 matches
Mail list logo