[Qemu-devel] [PATCH v5 04/10] virtio-scsi: add the virtio-scsi device.

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-scsi which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-scsi.c | 85 hw/virtio-scsi.h |

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

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-pci.c | 116

[Qemu-devel] [PATCH v5 03/10] virtio-scsi: moving host_features from properties to transport properties.

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 3 ++- hw/s390x/virtio-ccw.c

[Qemu-devel] [PATCH v5 09/10] virtio-scsi: cleanup: init and exit functions.

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This remove old init and exit function as they are no longer needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-scsi.c | 60 ++-- 1 file changed, 10 insertions(+), 50

[Qemu-devel] [PATCH v5 10/10] virtio-scsi: cleanup: remove qdev field.

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed. Just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- 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

[Qemu-devel] [PATCH v5 07/10] virtio-scsi-ccw: switch to new API

2013-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-scsi-ccw is modified for the new API. The device virtio-scsi-ccw extends virtio-ccw-device as before. It creates and connects a virtio-scsi during the init. The properties are not modified. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH] virtio-blk-x: fix configuration synchronization.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The virtio-blk-x configuration is not in sync with virtio-blk configuration. So this patch remove the virtio-blk-x configuration field, and use virtio-blk one for setting the properties. This also remove a useless configuration copy in

[Qemu-devel] [PATCH v4 00/10] virtio-scsi refactoring.

2013-03-20 Thread fred . konrad
specific. I made basic tests (with linux guests) on: * qemu-system-i386 Changes v3 - v4: * Added CCW device. * Fixed the configuration issue. Thanks, Fred KONRAD Frederic (10): virtio-scsi: don't use pointer for configuration. virtio-scsi: allocate cmd_vqs array separately. virtio

[Qemu-devel] [PATCH v4 02/10] virtio-scsi: allocate cmd_vqs array separately.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Allocate/Free the cmd_vqs array separately to have a fixed size device. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-scsi.c | 7 --- hw/virtio-scsi.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff

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

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

[Qemu-devel] [PATCH v4 01/10] virtio-scsi: don't use pointer for configuration.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-scsi.c | 14 +++--- hw/virtio-scsi.h | 2 +-

[Qemu-devel] [PATCH v4 07/10] virtio-scsi-ccw: switch to new API

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-scsi-ccw is modified for the new API. The device virtio-scsi-ccw extends virtio-ccw-device as before. It creates and connects a virtio-scsi during the init. The properties are not modified. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH v4 10/10] virtio-scsi: cleanup: remove qdev field.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed. Just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- 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

[Qemu-devel] [PATCH v4 03/10] virtio-scsi: moving host_features from properties to transport properties.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 7 ++- hw/s390x/virtio-ccw.c

[Qemu-devel] [PATCH v4 04/10] virtio-scsi: add the virtio-scsi device.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-scsi which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-scsi.c | 85 hw/virtio-scsi.h |

[Qemu-devel] [PATCH v4 08/10] virtio-scsi: cleanup: use QOM casts.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-scsi.c | 46 ++ hw/virtio-scsi.h | 2

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

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-pci.c | 124

[Qemu-devel] [PATCH v4 09/10] virtio-scsi: cleanup: init and exit functions.

2013-03-20 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This remove old init and exit function as they are no longer needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-scsi.c | 60 ++-- 1 file changed, 10 insertions(+), 50

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

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This set allow_hotplug for each existing virtio-x-bus, allowing the refactored devices to be hot pluggable. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 2 +- hw/s390x/virtio-ccw.c | 2 +-

[Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring.

2013-03-18 Thread fred . konrad
). Changes v6 - v7: * Fix the DEFINE_VIRTIO_BLK_PROPERTIES macro issue spotted by Peter. Thanks, Fred KONRAD Frederic (11): virtio: make virtio device's structures public. virtio-x-bus: fix allow_hotplug assertion. virtio-pci: fix hot unplug. virtio-blk: don't use pointer for configuration

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

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Maydell

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

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com

[Qemu-devel] [PATCH v10 08/11] virtio-blk-ccw switch to new API.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

[Qemu-devel] [PATCH v10 05/11] virtio-blk: add the virtio-blk device.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 98

[Qemu-devel] [PATCH v10 09/11] virtio-blk: cleanup: init and exit functions.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 85

[Qemu-devel] [PATCH v10 07/11] virtio-blk-s390: switch to the new API.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

[Qemu-devel] [PATCH v10 04/11] virtio-blk: don't use pointer for configuration.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v10 10/11] virtio-blk: cleanup: QOM cast

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15

[Qemu-devel] [PATCH v10 03/11] virtio-pci: fix hot unplug.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hot unplug failed because it tried to free the virtio device two times. This fix the issue by removing the call to virtio_bus_destroy_device. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-pci.c | 13 + 1 file

[Qemu-devel] [PATCH v10 11/11] virtio-blk: cleanup: remove qdev field.

2013-03-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3

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

2013-03-15 Thread fred . konrad
, and Stefan tried dataplane. 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

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Maydell

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

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

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

[Qemu-devel] [PATCH v8 09/10] virtio-blk: cleanup: QOM cast

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15

[Qemu-devel] [PATCH v8 04/10] virtio-blk: add the virtio-blk device.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 98

[Qemu-devel] [PATCH v8 08/10] virtio-blk: cleanup: init and exit functions.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 85

[Qemu-devel] [PATCH v8 10/10] virtio-blk: cleanup: remove qdev field.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3

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

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

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

2013-03-15 Thread fred . konrad
spotted by Peter. Thanks, Fred KONRAD Frederic (10): virtio: make virtio device's structures public. virtio-x-bus: fix allow_hotplug assertion. virtio-blk: don't use pointer for configuration. virtio-blk: add the virtio-blk device. virtio-blk-pci: switch to new API. virtio-blk-s390

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v9 09/10] virtio-blk: cleanup: QOM cast

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v9 04/10] virtio-blk: add the virtio-blk device.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 98

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com

[Qemu-devel] [PATCH v9 10/10] virtio-blk: cleanup: remove qdev field.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3

[Qemu-devel] [PATCH v9 08/10] virtio-blk: cleanup: init and exit functions.

2013-03-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 85

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

2013-03-14 Thread fred . konrad
guests) on: * 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-blk

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 98 ++--- hw/virtio-blk.h | 21

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 85

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3

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

2013-03-14 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Andreas Färber afaer...@suse.de Changes V4 - V3: * Rebased on current git.

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com ---

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 8

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 98 ++--- hw/virtio-blk.h | 28

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

2013-03-12 Thread fred . konrad
guests) on: * 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

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio-blk.c

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-03-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 85 ++---

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

2013-02-19 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- Changes V3 - V2: * Style correction

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

2013-02-18 Thread fred . konrad
) on: * qemu-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

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio-blk.c

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 8

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 84 +++--

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com ---

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 97 ++--- hw/virtio-blk.h | 28

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Use QOM casts inside virtio-blk. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 33 ++--- hw/virtio-blk.h | 2 +- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git

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

2013-02-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-02-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com ---

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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,

[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 fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 8

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 84 +++--

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio-blk.c

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com ---

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

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

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

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

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-balloon.c| 15 --- hw/virtio-balloon.h| 14

[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 fred.kon...@greensocs.com 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

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

2013-02-11 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 97 ++--- hw/virtio-blk.h | 28

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

2013-02-01 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for refactored virtio devices. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-balloon.c| 15 --- hw/virtio-balloon.h| 14

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com These structures must be made public to avoid two memory allocations for virtio-*-*. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-balloon.c| 12 hw/virtio-balloon.h| 11 +++ hw/virtio-blk.c

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This is the part 2/3 of the virtio-refactoring for testing/reviewing. Don't be afraid by the 44 steps, the structure is the same for all devices: * Move the *conf field to conf: (I think trivial and short.) * Create the virtio-x device.

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com --- hw/virtio-blk.c | 8

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-blk which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 97 ++--- hw/virtio-blk.h | 28

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com 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 fred.kon...@greensocs.com ---

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

2013-01-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-blk.c | 3 +-- hw/virtio-blk.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio-blk.c

<    1   2   3   4   5   6   7   8   >