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 | 115 ++
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 3 +--
hw/virtio-blk.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index c85b4d7..e02842d 100644
--- a/hw/virt
From: KONRAD Frederic
As all virtio-blk-* are switched to the new API, we can remove the separate
init/exit for the old API.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 84 +++--
hw/virtio.h | 2 --
2 files changed, 21 insertion
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for virtio-blk
properties. So *blk is replaced by blk in VirtIOBlock structure.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 8
hw/virtio-blk.h | 2 +-
2 files changed, 5 insertions(+), 5 de
sts (with linux guests) on:
* qemu-system-i386
* qemu-system-s390x
I didn't test dataplane as I don't know how it works? Depends on linux AIO?
Stefan can you try launching dataplane with my tree?
I didn't test virtio-ccw as I don't have the hardware.
Anyone can try it on cc
From: KONRAD Frederic
These structures must be made public to avoid two memory allocations for
refactored virtio devices.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c| 15 ---
hw/virtio-balloon.h| 14 ++
hw/virtio-blk.c| 16
hw
From: KONRAD Frederic
As the virtio-scsi-pci and virtio-scsi-s390 are switched to the new API,
we can use QOM casts.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 46 ++
hw/virtio-scsi.h | 2 +-
2 files changed, 27 insertions(+), 21 deletion
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 2 --
hw/virtio-serial.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index e59dff5..f3ffad3 100644
-
From: KONRAD Frederic
The qdev field is no longer needed. Just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 2 --
hw/virtio-scsi.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index a47667d..3566b97 100644
--- a/hw/virtio-scsi.c
+++
From: KONRAD Frederic
Here the virtio-rng-pci is modified for the new API. The device
virtio-rng-pci extends virtio-pci. It creates and connects a virtio-rng
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 140 +++---
From: KONRAD Frederic
Create virtio-scsi which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 91
hw/virtio-scsi.h | 7 +
2 files changed, 93 insertions(+), 5 delet
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 | 94 +
hw/virtio-balloon.h | 4 +++
2 files changed, 92 insertions(+), 6 d
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 93 --
1 file changed, 21 insertions(+), 72 deletions(-)
diff --git a/hw/virtio-serial-bus.c b
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for
virtio-rng properties. So *conf is replaced by conf.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 12 ++--
hw/virtio-rng.h | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff
From: KONRAD Frederic
Here the virtio-serial-s390 is modified for the new API. The device
virtio-serial-s390 extends virtio-s390-device as before. It creates and
connects a virtio-serial during the init. The properties are not
modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c |
From: KONRAD Frederic
host_features field is part of the transport device. So move all the
host_features related properties into transport device.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 7 ++-
hw/virtio-pci.c | 7 ++-
hw/virtio-scsi.h | 9 +++--
3 files
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 67 +
1 file changed, 11 insertions(+), 56 deletions(-)
diff --git a/hw/virtio-balloon.c b/hw
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 | 111 ++
From: KONRAD Frederic
This remove old init function as it is no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 75 ++
1 file changed, 23 insertions(+), 52 deletions(-)
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs
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| 2 +-
hw/virtio-serial-bus.c | 100 +
hw/virtio-serial.h | 11 ++
From: KONRAD Frederic
Here the virtio-rng-s390 is modified for the new API. The device
virtio-rng-s390 extends virtio-s390-device as before. It creates and
connects a virtio-rng during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 35 +
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 59 ++--
1 file changed, 10 insertions(+), 49 deletions(-)
diff --git a/hw/virtio-scsi.c b/hw/vi
From: KONRAD Frederic
Here the virtio-9p-pci is modified for the new API. The device
virtio-9p-pci extends virtio-pci. It creates and connects a virtio-9p
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 53 +++
From: KONRAD Frederic
Create virtio-rng which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 8 +---
hw/virtio-rng.c | 112 +---
hw/virtio-rng.h | 16
3 files chan
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 1 -
hw/virtio-balloon.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c
index 6eafd42..f509d81 100644
--- a/hw/virtio
From: KONRAD Frederic
As the virtio-rng-pci and virtio-rng-s390 are switched to the new API,
we can use QOM casts.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 31 +--
hw/virtio-rng.h | 2 +-
2 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/
From: KONRAD Frederic
As the virtio-balloon-pci is switched to the new API, we can use QOM
casts.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 39 +--
hw/virtio-balloon.h | 2 +-
2 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/h
From: KONRAD Frederic
Here the virtio-scsi-s390 is modified for the new API. The device
virtio-scsi-s390 extends virtio-s390-device as before. It creates and
connects a virtio-scsi during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 26 ++
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 | 128 +
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 87 ++---
1 file changed, 21 insertions(+), 66 deletions(-)
diff --git a/hw/virtio-rng.c b/hw/vir
From: KONRAD Frederic
Here the virtio-net-s390 is modified for the new API. The device
virtio-net-s390 extends virtio-s390-device as before. It creates and
connects a virtio-net during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 32 +
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.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 123 +---
hw/virtio-blk.
From: KONRAD Frederic
The qdev field is no longer needed. Just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 1 -
hw/virtio-net.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index 62b8cb5..0445345 100644
--- a/hw/virtio-net.c
+++ b/hw/
From: KONRAD Frederic
Here the virtio-scsi-pci is modified for the new API. The device virtio-scsi-pci
extends virtio-pci. It creates and connects a virtio-scsi during the init.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 125
h
From: KONRAD Frederic
Create virtio-9p which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 84 +++---
hw/9pfs/virtio-9p.h| 11 ++
2 files changed, 82 insertions(+)
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 | 111 --
From: KONRAD Frederic
Allocate/Free the cmd_vqs array separately to have a fixed size device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 6 +++---
hw/virtio-scsi.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index 29eb39
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 2 --
hw/virtio-rng.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/hw/virtio-rng.c b/hw/virtio-rng.c
index c4a323d..daeb734 100644
--- a/hw/virtio-rng.c
+++ b/h
From: KONRAD Frederic
As the virtio-serial-pci and virtio-serial-s390 are switched to the new
API, we can use QOM casts.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 50 ++
hw/virtio-serial.h | 2 +-
2 files changed, 27 insert
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for virtio-scsi
properties. So *conf is replaced by conf.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 14 +++---
hw/virtio-scsi.h | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
From: KONRAD Frederic
As the virtio-9p-pci is switched to the new API, we can use QOM casts.
Signed-off-by: KONRAD Frederic
---
hw/9pfs/virtio-9p-device.c | 11 +++
hw/9pfs/virtio-9p.c| 2 +-
hw/9pfs/virtio-9p.h| 2 +-
3 files changed, 5 insertions(+), 10 deletions(-)
From: KONRAD Frederic
Create virtio-net which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 117 +---
hw/virtio-net.h | 18 +
hw/virtio-pci.c | 7 +---
hw/virtio-p
From: KONRAD Frederic
As the virtio-net-pci and virtio-net-s390 are switched to the new API,
we can use QOM casts.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 155 ++--
hw/virtio-net.h | 2 +-
2 files changed, 84 insertions(+), 73
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 95 -
1 file changed, 20 insertions(+), 75 deletions(-)
diff --git a/hw/virtio-net.c b/hw/vir
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 3 +--
hw/virtio-blk.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index c19d347..74ba97b 100644
--- a/hw/virt
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 | 115 ++
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 | 11 +--
3
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 | 30 +
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for virtio-blk
properties. So *blk is replaced by blk in VirtIOBlock structure.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 8
hw/virtio-blk.h | 2 +-
2 files changed, 5 insertions(+), 5 de
:
git://git.greensocs.com/qemu_virtio.git virtio_v3_part2
(No need to pull virtio_v3_part1: it is included in virtio_v3_part2).
Thanks,
Fred.
Changes patch v2 -> v3:
* virtio-bus: change prefix: virtio_device_ -> virtio_bus_.
* virtio-bus: drop get/set nvectors functions.
* virt
From: KONRAD Frederic
These structures must be made public to avoid two memory allocations for
virtio-*-*.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c| 12
hw/virtio-balloon.h| 11 +++
hw/virtio-blk.c| 16
hw/virtio-blk.h
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 | 15 +++
2 files changed, 52 insertions(+)
diff --
From: KONRAD Frederic
Create the virtio-pci device which is abstract. This transport device will
create a virtio-pci-bus, so one VirtIODevice can be connected.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 118
hw/virtio-pci.h |
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
Reviewed-by: Peter Maydell
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 129 +++
hw/virti
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
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 | 29 +
hw/s390-virtio-bus.h | 17 +
2 files changed, 46 insertions
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class. It also add some functions to virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-bus.c | 35 +
hw/virtio-bus.h | 7 ++
hw/virtio.c | 70
From: KONRAD Frederic
Add a max_dev field to BusClass to specify the maximum amount of devices allowed
on the bus (has no effect if max_dev=0)
Signed-off-by: KONRAD Frederic
Reviewed-by: Peter Maydell
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 12
2 files changed, 14 ins
From: KONRAD Frederic
This is the part 1/3 of the virtio-refactoring with some fixes.
It introduces virtio-bus, virtio-pci-bus, virtio-s390-bus, and creates
virtio-pci, virtio-device.
You can clone that from here :
git://git.greensocs.com/qemu_virtio.git virtio_v3_part1
Changes patch v2 -> v3:
From: KONRAD Frederic
Fix the compilation error introduced by msg new field.
CChw/9pfs/virtio-9p.o
In file included from
/home/konradf/Documents/safe/greensocs/virtio-project/x86-qemu/qemu/hw/9pfs/virtio-9p.c:17:0:
/home/konradf/Documents/safe/greensocs/virtio-project/x86-qemu/qemu/hw/virti
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
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 | 29 +
hw/s390-virtio-bus.h | 17 +
2 files changed, 46 insertions
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 | 23 +--
2 files changed, 58 insertions(+),
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 | 18
2 fil
From: KONRAD Frederic
Create the virtio-device which is abstract. All the virtio-device can extend
this class. It also add some functions to virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-bus.c | 35 +
hw/virtio-bus.h | 7 ++
hw/virtio.c | 70
From: KONRAD Frederic
Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.
Signed-off-by: KONRAD Frederic
Reviewed-by: Peter Maydell
---
hw/Makefile.objs | 1 +
hw/virtio-bus.c | 143 +++
hw/virti
From: KONRAD Frederic
Add a max_dev field to BusClass to specify the maximum amount of devices allowed
on the bus (has no effect if max_dev=0)
Signed-off-by: KONRAD Frederic
Reviewed-by: Peter Maydell
---
hw/qdev-core.h| 2 ++
hw/qdev-monitor.c | 12
2 files changed, 14 ins
From: KONRAD Frederic
This is the part 1/3 of the virtio-refactoring.
It introduces virtio-bus, virtio-pci-bus, virtio-s390-bus, and creates
virtio-pci, virtio-device.
You can clone that from here :
git://git.greensocs.com/qemu_virtio.git virtio_refactoring_part1
There is a little patch reorga
From: KONRAD Frederic
As the virtio-scsi-pci and virtio-scsi-s390 are switched to the new API,
we can use QOM casts. This shouldn't been applyied before
virtio-scsi-pci and virtio-scsi-s390 refactoring as their VirtIODevice
were not a QOM object.
Signed-off-by: KONRAD Frederic
---
hw/virtio-sc
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
This shouldn't been applyied before virtio-net-pci and virtio-net-s390
refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 95 -
1 fi
From: KONRAD Frederic
Here the virtio-scsi-pci is modified for the new API. The device virtio-scsi-pci
extends virtio-pci. It creates and connects a virtio-scsi during the init.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 121 +++-
h
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 | 29 +
hw/s390-virtio-bus.h | 13 +
2 files changed, 42 insertions(+)
From: KONRAD Frederic
Here the virtio-net-s390 is modified for the new API. The device
virtio-net-s390 extends virtio-s390-device as before. It creates and
connects a virtio-net during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 32 +
From: KONRAD Frederic
Here the virtio-serial-s390 is modified for the new API. The device
virtio-serial-s390 extends virtio-s390-device as before. It creates and
connects a virtio-serial during the init. The properties are not
modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c |
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 1 -
hw/virtio-balloon.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c
index 2cb57b2..e2cb2fc 100644
--- a/hw/virtio
From: KONRAD Frederic
As the virtio-net-pci and virtio-net-s390 are switched to the new API,
we can use QOM casts. This shouldn't been applyied before virtio-net-pci
and virtio-net-s390 refactoring as their VirtIODevice were not a QOM
object.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c
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 | 109 +-
From: KONRAD Frederic
As we discuss with anthony and andreas, this structure must be showed to avoid
two memory allocations for virtio-serial-x.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 41 -
hw/virtio-serial.h | 41 +++
From: KONRAD Frederic
Create virtio-net which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-net.c | 115 +---
hw/virtio-net.h | 18 +
hw/virtio-pci.c | 12 +++---
hw/virtio
From: KONRAD Frederic
The qdev field is no longer needed. Just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 2 --
hw/virtio-scsi.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index b2e0d70..273ca69 100644
--- a/hw/virtio-scsi.c
+++
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 | 30 ++
2 files changed, 88 ins
From: KONRAD Frederic
As we discuss with anthony and andreas, this structure must be showed to avoid
two memory allocations for virtio-rng-x.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 19 ---
hw/virtio-rng.h | 19 +++
2 files changed, 19 insertions(+)
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 3 +--
hw/virtio-blk.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index c19d347..74ba97b 100644
--- a/hw/virt
From: KONRAD Frederic
Here the virtio-scsi-s390 is modified for the new API. The device
virtio-scsi-s390 extends virtio-s390-device as before. It creates and
connects a virtio-scsi during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 26 ++
From: KONRAD Frederic
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic
---
hw/virtio-serial-bus.c | 2 --
hw/virtio-serial.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index 3bcb2d7..d1f47a4 100644
-
From: KONRAD Frederic
Here the virtio-rng-s390 is modified for the new API. The device
virtio-rng-s390 extends virtio-s390-device as before. It creates and
connects a virtio-rng during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic
---
hw/s390-virtio-bus.c | 35 +
From: KONRAD Frederic
Here the virtio-rng-pci is modified for the new API. The device
virtio-rng-pci extends virtio-pci. It creates and connects a virtio-rng
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 134 ++
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 | 18
2 fil
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for virtio-blk
properties. So *blk is replaced by blk in VirtIOBlock structure.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 8
hw/virtio-blk.h | 2 +-
2 files changed, 5 insertions(+), 5 de
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for
virtio-rng properties. So *conf is replaced by conf.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 12 ++--
hw/virtio-rng.h | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
This shouldn't been applyied before virtio-balloon-pci refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-balloon.c | 68 ++---
1 file changed, 12 i
From: KONRAD Frederic
The configuration field must not be a pointer as it will be used for virtio-scsi
properties. So *conf is replaced by conf.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 14 +++---
hw/virtio-scsi.h | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
From: KONRAD Frederic
As the virtio-rng-pci and virtio-rng-s390 are switched to the new API,
we can use QOM casts. This shouldn't been applyied before virtio-rng-pci
and virtio-rg-s390 refactoring as their VirtIODevice were not a QOM
object.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c |
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
Allocate/Free the cmd_vqs array separately to have a fixed size device.
Signed-off-by: KONRAD Frederic
---
hw/virtio-scsi.c | 6 +++---
hw/virtio-scsi.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index 1bd689
From: KONRAD Frederic
This remove old init and exit function as they are no longer needed.
This shouldn't been applyied before virtio-rng-pci and virtio-rng-s390
refactoring.
Signed-off-by: KONRAD Frederic
---
hw/virtio-rng.c | 88 ++---
1 fi
From: KONRAD Frederic
Create virtio-rng which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 13 +++
hw/virtio-rng.c | 118
hw/virtio-rng.h | 16
3 files c
From: KONRAD Frederic
Create virtio-scsi which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic
---
hw/virtio-pci.c | 5
hw/virtio-scsi.c | 91
hw/virtio-scsi.h | 7 +
3 files change
From: KONRAD Frederic
As we discuss with anthony and andreas, this structure must be showed to avoid
two memory allocations for virtio-blk-x.
Signed-off-by: KONRAD Frederic
---
hw/virtio-blk.c | 16
hw/virtio-blk.h | 15 +++
2 files changed, 15 insertions(+), 16 de
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 | 30 +
601 - 700 of 812 matches
Mail list logo