virtio-blk: cleanup: QOM cast
Use QOM casts inside virtio-blk.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1363624648-16906-11-git-send-email-fred.konrad@greensocs.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-blk: add the virtio-blk device.
Create virtio-blk which extends virtio-device, so it can be connected onvirtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1363624648-16906-6-git-send-email-fred.konrad@greensocs.com...
virtio-blk-pci: switch to new API.
Here the virtio-blk-pci is modified for the new API. The devicevirtio-blk-pci extends virtio-pci. It creates and connects a virtio-blkduring the init. The properties are not changed.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>...
virtio-blk-s390: switch to the new API.
Here the virtio-blk-s390 is modified for the new API. The devicevirtio-blk-s390 extends virtio-s390-device as before. It creates andconnects a virtio-blk during the init. The properties are not modified.
virtio-blk-ccw switch to new API.
Here the virtio-ccw-s390 is modified for the new API. The devicevirtio-ccw-s390 extends virtio-ccw-device as before. It creates andconnects a virtio-ccw during the init. The properties are not modified.
virtio-blk: cleanup: init and exit functions.
As all virtio-blk-* are switched to the new API, we can remove the separateinit/exit for the old API.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
virtio: make virtio device's structures public.
These structures must be made public to avoid two memory allocations forrefactored virtio devices.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>Reviewed-by: Andreas Färber <afaerber@suse.de>...
virtio-x-bus: fix allow_hotplug assertion.
This set allow_hotplug for each existing virtio-x-bus, allowing therefactored devices to be hot pluggable.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>Message-id: 1363624648-16906-3-git-send-email-fred.konrad@greensocs.com...
virtio-pci: fix hot unplug.
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.konrad@greensocs.com>Message-id: 1363624648-16906-4-git-send-email-fred.konrad@greensocs.com...
virtio-blk: don't use pointer for configuration.
The configuration field must not be a pointer as it will be used for virtio-blkproperties. So *blk is replaced by blk in VirtIOBlock structure.
View revisions
Also available in: Atom