[Qemu-devel] [PATCH for-1.5 3/8] virtio-blk-pci: switch to new API.

2013-02-11 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH for-1.5 8/8] virtio-blk: cleanup: remove qdev field.

2013-02-11 Thread fred . konrad
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

[Qemu-devel] [PATCH for-1.5 6/8] virtio-blk: cleanup: init and exit functions.

2013-02-11 Thread fred . konrad
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

[Qemu-devel] [PATCH for-1.5 1/8] virtio-blk: don't use pointer for configuration.

2013-02-11 Thread fred . konrad
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

[Qemu-devel] [PATCH for-1.5 0/8] virtio-blk refactoring.

2013-02-11 Thread fred . konrad
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

[Qemu-devel] [PATCH for 1.5] virtio: make virtio device's structures public.

2013-02-01 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 20/44] virtio-scsi: cleanup: use QOM casts.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 40/44] virtio-serial: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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 -

[Qemu-devel] [PATCH V3 22/44] virtio-scsi: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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 +++

[Qemu-devel] [PATCH V3 31/44] virtio-rng-pci: switch to the new API.

2013-01-15 Thread fred . konrad
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 +++---

[Qemu-devel] [PATCH V3 17/44] virtio-scsi: add the virtio-scsi device.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 23/44] virtio-balloon: add the virtio-balloon device.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 38/44] virtio-serial: cleanup: init and exit functions.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 28/44] virtio-rng: don't use pointer for configuration.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 37/44] virtio-serial-s390: switch to the new API.

2013-01-15 Thread fred . konrad
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 |

[Qemu-devel] [PATCH V3 16/44] virtio-scsi: moving host_features from properties to transport properties.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 25/44] virtio-balloon: cleanup: init and exit function.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 24/44] virtio-balloon-pci: switch to the new API.

2013-01-15 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH V3 43/44] virtio-9p: cleanup: init function.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 35/44] virtio-serial: add the virtio-serial device.

2013-01-15 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH V3 30/44] virtio-rng-s390: switch to the new API.

2013-01-15 Thread fred . konrad
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 +

[Qemu-devel] [PATCH V3 21/44] virtio-scsi: cleanup: init and exit functions.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 42/44] virtio-9p-pci: switch to the new API.

2013-01-15 Thread fred . konrad
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 +++

[Qemu-devel] [PATCH V3 29/44] virtio-rng: add virtio-rng device.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 27/44] virtio-balloon: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 34/44] virtio-rng.c: cleanup: use QOM casts.

2013-01-15 Thread fred . konrad
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/

[Qemu-devel] [PATCH V3 26/44] virtio-balloon: cleanup: QOM casts.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 19/44] virtio-scsi-s390: switch to the new API.

2013-01-15 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH V3 36/44] virtio-serial-pci: switch to the new API.

2013-01-15 Thread fred . konrad
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 +

[Qemu-devel] [PATCH V3 32/44] virtio-rng.c: cleanup: init and exit functions.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 10/44] virtio-net-s390: switch to the new API.

2013-01-15 Thread fred . konrad
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 +

[Qemu-devel] [PATCH V3 06/44] virtio-blk: cleanup: use QOM cast.

2013-01-15 Thread fred . konrad
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.

[Qemu-devel] [PATCH V3 13/44] virtio-net: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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/

[Qemu-devel] [PATCH V3 18/44] virtio-scsi-pci: switch to new API.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 41/44] virtio-9p: add the virtio-9p device.

2013-01-15 Thread fred . konrad
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(+)

[Qemu-devel] [PATCH V3 09/44] virtio-net-pci: switch to the new API.

2013-01-15 Thread fred . konrad
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 --

[Qemu-devel] [PATCH V3 15/44] virtio-scsi: allocate cmd_vqs array separately.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 33/44] virtio-rng.c: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 39/44] virtio-serial: cleanup: use QOM casts.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 14/44] virtio-scsi: don't use pointer for configuration.

2013-01-15 Thread fred . konrad
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(-)

[Qemu-devel] [PATCH V3 44/44] virtio-9p: cleanup: QOM casts.

2013-01-15 Thread fred . konrad
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(-)

[Qemu-devel] [PATCH V3 08/44] virtio-net: add the virtio-net device.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 11/44] virtio-net: cleanup: use QOM cast.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 12/44] virtio-net: cleanup: init and exit function.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 07/44] virtio-blk: cleanup: remove qdev field.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 04/44] virtio-blk-pci: switch to new API.

2013-01-15 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH V3 03/44] virtio-blk: add the virtio-blk device.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 05/44] virtio-blk-s390: switch to the new API.

2013-01-15 Thread fred . konrad
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 +

[Qemu-devel] [PATCH V3 02/44] virtio-blk: don't use pointer for configuration.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 00/44] Virtio-refactoring part2.

2013-01-15 Thread fred . konrad
: 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

[Qemu-devel] [PATCH V3 01/44] virtio: make virtio device's structures public.

2013-01-15 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 4/7] virtio-pci-bus: introduce virtio-pci-bus.

2013-01-14 Thread fred . konrad
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 --

[Qemu-devel] [PATCH V3 5/7] virtio-pci: refactor virtio-pci device.

2013-01-14 Thread fred . konrad
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 |

[Qemu-devel] [PATCH V3 2/7] virtio-bus: introduce virtio-bus

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 7/7] virtio-s390-device: create a virtio-s390-bus during init.

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 6/7] virtio-s390-bus: add virtio-s390-bus.

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 3/7] virtio-device: refactor virtio-device.

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 1/7] qdev: add a maximum device allowed field for the bus.

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V3 0/7] Virtio-refactoring part1.

2013-01-14 Thread fred . konrad
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:

[Qemu-devel] [PATCH] virtio-9p: fix compilation error.

2013-01-14 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 7/7] virtio-s390-device: create a virtio-s390-bus during init.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 6/7] virtio-s390-bus: add virtio-s390-bus.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 4/7] virtio-pci-bus: introduce virtio-pci-bus.

2013-01-09 Thread fred . konrad
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(+),

[Qemu-devel] [PATCH V2 5/7] virtio-pci: refactor virtio-pci device.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 3/7] virtio-device: refactor virtio-device.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 2/7] virtio-bus: introduce virtio-bus

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 1/7] qdev: add a maximum device allowed field for the bus.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH V2 0/7] Virtio-refactoring part1.

2013-01-09 Thread fred . konrad
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

[Qemu-devel] [PATCH 29/61] virtio-scsi : cleanup : use QOM casts.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 20/61] virtio-net : cleanup : init and exit function.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 27/61] virtio-scsi-pci : switch to new API.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 06/61] virtio-s390-bus : add virtio-s390-bus.

2013-01-07 Thread fred . konrad
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(+)

[Qemu-devel] [PATCH 18/61] virtio-net-s390 : switch to the new API.

2013-01-07 Thread fred . konrad
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 +

[Qemu-devel] [PATCH 49/61] virtio-serial-s390 : switch to the new API.

2013-01-07 Thread fred . konrad
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 |

[Qemu-devel] [PATCH 37/61] virtio-balloon : cleanup : remove qdev field.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 19/61] virtio-net : cleanup : use QOM cast.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 11/61] virtio-blk-pci : switch to new API.

2013-01-07 Thread fred . konrad
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 +-

[Qemu-devel] [PATCH 46/61] virtio-serial : show structures.

2013-01-07 Thread fred . konrad
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 +++

[Qemu-devel] [PATCH 16/61] virtio-net : add the virtio-net device.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 31/61] virtio-scsi : cleanup : remove qdev field.

2013-01-07 Thread fred . konrad
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 +++

[Qemu-devel] [PATCH 05/61] virtio-device : refactor virtio-device.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 38/61] virtio-rng : show the VirtIORNG structure.

2013-01-07 Thread fred . konrad
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(+)

[Qemu-devel] [PATCH 14/61] virtio-blk : cleanup : remove qdev field.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 28/61] virtio-scsi-s390 : switch to the new API.

2013-01-07 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH 52/61] virtio-serial : cleanup : remove qdev field.

2013-01-07 Thread fred . konrad
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 -

[Qemu-devel] [PATCH 41/61] virtio-rng-s390 : switch to the new API.

2013-01-07 Thread fred . konrad
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 +

[Qemu-devel] [PATCH 42/61] virtio-rng-pci : switch to the new API.

2013-01-07 Thread fred . konrad
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 ++

[Qemu-devel] [PATCH 04/61] virtio-pci : refactor virtio-pci device.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 09/61] virtio-blk : don't use pointer for configuration.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 39/61] virtio-rng : don't use pointer for configuration.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 35/61] virtio-balloon : cleanup : init and exit function.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 23/61] virtio-scsi : don't use pointer for configuration.

2013-01-07 Thread fred . konrad
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(-)

[Qemu-devel] [PATCH 45/61] virtio-rng.c : cleanup : use QOM casts.

2013-01-07 Thread fred . konrad
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 |

[Qemu-devel] [PATCH 07/61] virtio-s390-device : create a virtio-s390-bus during init.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 24/61] virtio-scsi : allocate cmd_vqs array separately.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 43/61] virtio-rng.c : cleanup : init and exit functions.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 40/61] virtio-rng : add virtio-rng device.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 26/61] virtio-scsi : add the virtio-scsi device.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 08/61] virtio-blk : show VirtIOBlock structure.

2013-01-07 Thread fred . konrad
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

[Qemu-devel] [PATCH 12/61] virtio-blk-s390 : switch to the new API.

2013-01-07 Thread fred . konrad
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 +

<    2   3   4   5   6   7   8   9   >