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 |
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
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
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
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
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
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
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
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
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
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 +-
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
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
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
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 |
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
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
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
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 +-
).
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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 +-
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
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
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
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
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
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
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
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 +-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
---
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
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
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
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
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
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
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
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 ++---
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
) 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
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
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
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 +++--
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
---
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
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
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
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
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
---
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,
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
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 +++--
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
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
---
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
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
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
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
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
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
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
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.
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
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
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
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
---
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
501 - 600 of 786 matches
Mail list logo