[Qemu-devel] [RFC PATCH v5 3/6] virtio-pci-bus : Introduce virtio-pci-bus.

2012-12-04 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 | 19 +-- 2 files changed, 54 insertions(+), 2 d

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

2012-12-04 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v5 6/6] virtio-blk : Refactor virtio-blk.

2012-12-04 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 | 170 hw/virtio-blk.h | 4 ++ 2 files changed, 150 insertions(+), 24 deletio

[Qemu-devel] [RFC PATCH v5 4/6] virtio-pci : Refactor virtio-pci device.

2012-12-04 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 | 112 hw/virtio-pci.h | 14 +++ 2 file

[Qemu-devel] [RFC PATCH v5 0/6] Virtio refactoring.

2012-12-04 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v5 2/6] virtio-bus : Introduce virtio-bus

2012-12-04 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 --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 111 +++ hw/virtio-bus.h | 76 ++

[Qemu-devel] [RFC PATCH v5 5/6] virtio-device : Refactor virtio-device.

2012-12-04 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 | 56 hw/virtio.h | 29 + 2 files changed, 85 inser

[Qemu-devel] [RFC PATCH v6 0/6] Virtio refactoring.

2012-12-07 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v6 3/6] virtio-pci-bus : Introduce virtio-pci-bus.

2012-12-07 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 | 19 +-- 2 files changed, 54 insertions(+), 2 d

[Qemu-devel] [RFC PATCH v6 2/6] virtio-bus : Introduce virtio-bus

2012-12-07 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 --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 111 +++ hw/virtio-bus.h | 82 ++

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

2012-12-07 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v6 6/6] virtio-blk : Add the virtio-blk device.

2012-12-07 Thread fred . konrad
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 +

[Qemu-devel] [RFC PATCH v6 5/6] virtio-device : Refactor virtio-device.

2012-12-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 | 50 +++--- hw/virtio.h | 28 2 files changed, 67 insertions(+

[Qemu-devel] [RFC PATCH v6 4/6] virtio-pci : Refactor virtio-pci device.

2012-12-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 | 112 hw/virtio-pci.h | 14 +++ 2 file

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

2012-12-10 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v7 2/8] virtio-bus : Introduce virtio-bus

2012-12-10 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 --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 120 +++ hw/virtio-bus.h | 83 ++

[Qemu-devel] [RFC PATCH v7 7/8] virtio-pci-blk : Switch to new API.

2012-12-10 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v7 4/8] virtio-pci : Refactor virtio-pci device.

2012-12-10 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 | 19 + 2 fi

[Qemu-devel] [RFC PATCH v7 0/8] Virtio refactoring.

2012-12-10 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v7 8/8] virtio-blk : QOM modifications.

2012-12-10 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH v7 5/8] virtio-device : Refactor virtio-device.

2012-12-10 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 | 50 +++--- hw/virtio.h | 28 2 files changed, 67 insertions(+

[Qemu-devel] [RFC PATCH v7 3/8] virtio-pci-bus : Introduce virtio-pci-bus.

2012-12-10 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 | 19 +-- 2 files changed, 54 insertions(+), 2 d

[Qemu-devel] [RFC PATCH v7 6/8] virtio-blk : Add the virtio-blk device.

2012-12-10 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 | 107 +++- hw/virtio-blk.h | 6 2 files changed, 104 insertions(+), 9 deleti

[Qemu-devel] [RFC PATCH V8 04/15] virtio-pci : Refactor virtio-pci device.

2012-12-19 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 | 130 hw/virtio-pci.h | 19 + 2 fi

[Qemu-devel] [RFC PATCH V8 09/15] virtio-blk-pci : Switch to new API.

2012-12-19 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. Signed-off-by: KONRAD Frederic --- hw/virtio-pci.c | 106 +--- hw/v

[Qemu-devel] [RFC PATCH V8 13/15] virtio : Remove the function pointer.

2012-12-19 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH V8 12/15] virtio-blk : cleanup : remove qdev field.

2012-12-19 Thread fred . konrad
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.

[Qemu-devel] [RFC PATCH V8 05/15] virtio-device : Refactor virtio-device.

2012-12-19 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 | 31 +++ 2 files changed, 89 in

[Qemu-devel] [RFC PATCH V8 10/15] virtio-blk-s390 : Switch to the new API.

2012-12-19 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. 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

[Qemu-devel] [RFC PATCH V8 00/15] Virtio refactoring.

2012-12-19 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH V8 01/15] qdev : add a maximum device allowed field for the bus.

2012-12-19 Thread fred . konrad
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

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

2012-12-19 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH V8 02/15] virtio-bus : Introduce virtio-bus

2012-12-19 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 --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 169 +++ hw/virtio-bus.h | 98 ++

[Qemu-devel] [RFC PATCH V8 11/15] virtio-blk : cleanup : use QOM cast.

2012-12-19 Thread fred . konrad
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 ++

[Qemu-devel] [RFC PATCH V8 15/15] virtio : cleanup : init and exit function.

2012-12-19 Thread fred . konrad
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

[Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device.

2012-12-19 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 | 101 +++- hw/virtio-blk.h | 19 +++ hw/virtio-pci.c | 7 ++-- 3 files c

[Qemu-devel] [RFC PATCH V8 06/15] virtio-s390-bus : Add virtio-s390-bus.

2012-12-19 Thread fred . konrad
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/

[Qemu-devel] [RFC PATCH V8 14/15] virtio : Remove VirtIOBindings.

2012-12-19 Thread fred . konrad
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 ++

[Qemu-devel] [RFC PATCH V8 03/15] virtio-pci-bus : Introduce virtio-pci-bus.

2012-12-19 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 | 19 +-- 2 files changed, 54 insertions(+), 2 d

[Qemu-devel] [RFC V9 01/12] qdev : add a maximum device allowed field for the bus.

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

[Qemu-devel] [RFC V9 02/12] virtio-bus : introduce virtio-bus

2013-01-03 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 --- hw/Makefile.objs | 1 + hw/virtio-bus.c | 178 +++ hw/virtio-bus.h | 98 ++

[Qemu-devel] [RFC V9 00/12] Virtio refactoring.

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

[Qemu-devel] [RFC V9 10/12] virtio-blk-s390 : switch to the new API.

2013-01-03 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 | 17 +

[Qemu-devel] [RFC V9 09/12] virtio-blk-pci : switch to new API.

2013-01-03 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 | 113 +++---

[Qemu-devel] [RFC V9 11/12] virtio-blk : cleanup : use QOM cast.

2013-01-03 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. This shouldn't been applyied before virtio-blk-pci and virtio-blk-s390 refactoring as their VirtIODevice were not a QOM object. Sig

[Qemu-devel] [RFC V9 04/12] virtio-pci : refactor virtio-pci device.

2013-01-03 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 | 133 hw/virtio-pci.h | 18 2 fil

[Qemu-devel] [RFC V9 08/12] virtio-blk : add the virtio-blk device.

2013-01-03 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 | 101 +++- hw/virtio-blk.h | 19 +++ hw/virtio-pci.c | 7 ++-- 3 files c

[Qemu-devel] [RFC V9 05/12] virtio-device : refactor virtio-device.

2013-01-03 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 | 31 +++ 2 files changed, 89 in

[Qemu-devel] [RFC V9 12/12] virtio-blk : cleanup : remove qdev field.

2013-01-03 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 | 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

[Qemu-devel] [RFC V9 06/12] virtio-s390-bus : add virtio-s390-bus.

2013-01-03 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 | 28 hw/s390-virtio-bus.h | 13 + 2 files changed, 41 insertions(+)

[Qemu-devel] [RFC V9 03/12] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-03 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 | 19 +-- 2 files changed, 54 insertions(+), 2 d

[Qemu-devel] [RFC V9 07/12] virtio-s390-device : create a virtio-s390-bus during init.

2013-01-03 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 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 for-1.5 0/8] virtio-blk refactoring.

2013-02-11 Thread fred . konrad
From: KONRAD Frederic This is the next part of virtio-refactoring. I send it now to have it reviewed. Basically it creates virtio-blk device which extends virtio-device. Then a virtio-blk can be connected on a virtio-bus. virtio-blk-pci, virtio-blk-s390x, virtio-blk-ccw are created too, they ex

[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 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 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 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 7/8] virtio-blk: cleanup: QOM cast

2013-02-11 Thread fred . konrad
From: KONRAD Frederic Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 2f4cf19..c85b4d7 1

[Qemu-devel] [PATCH for-1.5 5/8] virtio-blk-ccw switch to new API.

2013-02-11 Thread fred . konrad
From: KONRAD Frederic Signed-off-by: KONRAD Frederic --- hw/s390x/virtio-ccw.c | 38 -- hw/s390x/virtio-ccw.h | 14 +- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index d92e427..27

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

2013-02-11 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 for-1.5 4/8] virtio-blk-s390: switch to the new API.

2013-02-11 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/s390x/s390-virtio-bus.c | 30

[Qemu-devel] [PATCH for-1.5 2/8] virtio-blk: add the virtio-blk device.

2013-02-11 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 V2 for-1.5] virtio: make virtio device's structures public.

2013-02-12 Thread fred . konrad
From: KONRAD Frederic These structures must be made public to avoid two memory allocations for refactored virtio devices. Changes V2 <- V1: * Move the dataplane include into the header (virtio-blk). Signed-off-by: KONRAD Frederic --- hw/virtio-balloon.c| 15 --- hw/virtio-

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

2013-02-18 Thread fred . konrad
emu-system-i386 * qemu-system-s390x Cornelia made virtio-ccw test, and Stefan tried dataplane. There are no changes but I resend it with an appropriate commit message for "virtio-blk-ccw switch to new API". Thanks. Fred KONRAD Frederic (8): virtio-blk: don't use pointer for co

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

2013-02-18 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 6f36d68..50c1670 100644 --- a/hw/virt

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

2013-02-18 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 V5 6/8] virtio-blk: cleanup: init and exit functions.

2013-02-18 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 V5 3/8] virtio-blk-pci: switch to new API.

2013-02-18 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 V5 5/8] virtio-blk-ccw switch to new API.

2013-02-18 Thread fred . konrad
From: KONRAD Frederic Here the virtio-ccw-s390 is modified for the new API. The device virtio-ccw-s390 extends virtio-ccw-device as before. It creates and connects a virtio-ccw during the init. The properties are not modified. Signed-off-by: KONRAD Frederic --- hw/s390x/virtio-ccw.c | 38 +

[Qemu-devel] [PATCH V5 2/8] virtio-blk: add the virtio-blk device.

2013-02-18 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 V5 7/8] virtio-blk: cleanup: QOM cast

2013-02-18 Thread fred . konrad
From: KONRAD Frederic Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 4502122..6f36d68 1

[Qemu-devel] [PATCH V5 4/8] virtio-blk-s390: switch to the new API.

2013-02-18 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/s390x/s390-virtio-bus.c | 30

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

2013-02-19 Thread fred . konrad
From: KONRAD Frederic These structures must be made public to avoid two memory allocations for refactored virtio devices. Compile-tested, with DATAPLANE enabled. Signed-off-by: KONRAD Frederic --- Changes V3 <- V2: * Style correction spotted by Andreas (virtio-scsi.h). * Style correct

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

2013-03-12 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 Reviewed-by: Andreas Färber Changes V4 <- V3: * Rebased on current git. Changes V3 <- V2: * Style correction spotted by Andreas (vir

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

2013-03-12 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 v6 1/8] virtio-blk: don't use pointer for configuration.

2013-03-12 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 v6 2/8] virtio-blk: add the virtio-blk device.

2013-03-12 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 | 98 ++--- hw/virtio-blk.h | 28 + hw/virtio-pci.c | 11 +-- 3

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

2013-03-12 Thread fred . konrad
* qemu-system-i386 * qemu-system-s390x Cornelia made virtio-ccw test, and Stefan tried dataplane. There are no changes, just rebased on the current git. Thanks. Fred KONRAD Frederic (8): virtio-blk: don't use pointer for configuration. virtio-blk: add the virtio-blk device. virti

[Qemu-devel] [PATCH v6 4/8] virtio-blk-s390: switch to the new API.

2013-03-12 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/s390x/s390-virtio-bus.c | 30

[Qemu-devel] [PATCH v6 7/8] virtio-blk: cleanup: QOM cast

2013-03-12 Thread fred . konrad
From: KONRAD Frederic Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 935aad4..556d6d9 1

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

2013-03-12 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 556d6d9..fffeeae 100644 --- a/hw/virt

[Qemu-devel] [PATCH v6 5/8] virtio-blk-ccw switch to new API.

2013-03-12 Thread fred . konrad
From: KONRAD Frederic Here the virtio-ccw-s390 is modified for the new API. The device virtio-ccw-s390 extends virtio-ccw-device as before. It creates and connects a virtio-ccw during the init. The properties are not modified. Signed-off-by: KONRAD Frederic --- hw/s390x/virtio-ccw.c | 37 +

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

2013-03-12 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 | 85 ++--- hw/virtio.h | 2 -- 2 files changed, 21 insertion

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

2013-03-14 Thread fred . konrad
* qemu-system-i386 * qemu-system-s390x Cornelia made virtio-ccw test, and Stefan tried dataplane. Changes v6 -> v7: * Fix the DEFINE_VIRTIO_BLK_PROPERTIES macro issue spotted by Peter. Thanks. Fred KONRAD Frederic (8): virtio-blk: don't use pointer for configuration. virtio-

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

2013-03-14 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 Reviewed-by: Peter Maydell --- hw/virtio-blk.c | 8 hw/virtio-blk.h | 2 +- 2 files ch

[Qemu-devel] [PATCH v7 5/8] virtio-blk-ccw switch to new API.

2013-03-14 Thread fred . konrad
From: KONRAD Frederic Here the virtio-ccw-s390 is modified for the new API. The device virtio-ccw-s390 extends virtio-ccw-device as before. It creates and connects a virtio-ccw during the init. The properties are not modified. Signed-off-by: KONRAD Frederic Reviewed-by: Peter Maydell --- hw/s

[Qemu-devel] [PATCH v7 2/8] virtio-blk: add the virtio-blk device.

2013-03-14 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 | 98 ++--- hw/virtio-blk.h | 21 + hw/virtio-pci.c | 8 + 3 files

[Qemu-devel] [PATCH v7 7/8] virtio-blk: cleanup: QOM cast

2013-03-14 Thread fred . konrad
From: KONRAD Frederic Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic Reviewed-by: Peter Maydell --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-bl

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

2013-03-14 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 Reviewed-by: Peter Maydell --- hw/virtio-pci.c | 121 ++

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

2013-03-14 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 Reviewed-by: Peter Maydell --- hw/virtio-blk.c | 85 ++--- hw/virtio.h | 2 -- 2

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic Reviewed-by: Peter Maydell --- 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 663edcd..

[Qemu-devel] [PATCH v7 4/8] virtio-blk-s390: switch to the new API.

2013-03-14 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 Reviewed-by: Peter Maydell --- hw/

[Qemu-devel] [PATCH v8 00/10] virtio-blk refactoring.

2013-03-15 Thread fred . konrad
. Changes v7 -> v8: * Fix the allow_hotplug assertion spotted by Anthony. * Attached the make virtio device's structures public (v4). Changes v6 -> v7: * Fix the DEFINE_VIRTIO_BLK_PROPERTIES macro issue spotted by Peter. Thanks. Fred KONRAD Frederic (10): virtio: make virt

[Qemu-devel] [PATCH v8 03/10] virtio-blk: don't use pointer for configuration.

2013-03-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 Reviewed-by: Peter Maydell --- hw/virtio-blk.c | 8 hw/virtio-blk.h | 2 +- 2 files ch

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

2013-03-15 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 Reviewed-by: Andreas Färber Reviewed-by: Peter Maydell Changes V4 <- V3: * Rebased on current git. Changes V3 <- V2: * Style correc

[Qemu-devel] [PATCH v8 02/10] virtio-x-bus: fix allow_hotplug assertion.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic This set allow_hotplug for each existing virtio-x-bus, allowing the refactored devices to be hot pluggable. Signed-off-by: KONRAD Frederic --- hw/s390x/s390-virtio-bus.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- hw/virtio-pci.c| 2 +- 3 files changed, 3 inser

[Qemu-devel] [PATCH v8 06/10] virtio-blk-s390: switch to the new API.

2013-03-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 Reviewed-by: Peter Maydell --- hw/

[Qemu-devel] [PATCH v8 05/10] virtio-blk-pci: switch to new API.

2013-03-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 Reviewed-by: Peter Maydell --- hw/virtio-pci.c | 121 ++

[Qemu-devel] [PATCH v8 07/10] virtio-blk-ccw switch to new API.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic Here the virtio-ccw-s390 is modified for the new API. The device virtio-ccw-s390 extends virtio-ccw-device as before. It creates and connects a virtio-ccw during the init. The properties are not modified. Signed-off-by: KONRAD Frederic Reviewed-by: Peter Maydell --- hw/s

  1   2   3   4   5   6   7   8   >