125ee0ed9c
devices: Associate devices to their logical category
...
The category will be used to sort the devices displayed in
the command line help.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com >
Message-id: 1375107465-25767-4-git-send-email-marcel.a@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 10:37:09 -05:00
caad4eb345
scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline()
...
Let scsi_bus_legacy_add_drive() and scsi_bus_legacy_handle_cmdline()
return an Error**. Prepare qdev initfns for QOM realize error model.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-23 00:37:35 +02:00
f487b677c2
dma: keep a device alive while it has SGLists
...
Reviewed-by: Anthony Liguori <aliguori@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:30 +02:00
df32fd1c9f
dma: eliminate DMAContext
...
The DMAContext is a simple pointer to an AddressSpace that is now always
already available. Make everyone hold the address space directly,
and clean up the DMA API to use the AddressSpace directly.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-06-20 16:39:52 +02:00
6f32a6b47e
virtio-scsi: fix the command line compatibility.
...
The bus name is wrong since the refactoring.
This keeps the behaviour of the command line.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1367330931-12994-6-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-05-03 12:05:15 -05:00
11fc853c4c
scsi: add bus_name parameter to scsi_bus_new.
...
This adds the possibility to create a scsi-bus with a specified name.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1367330931-12994-4-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-05-03 12:05:15 -05:00
6a1a8cc7af
virtio: cleanup: init and exit function.
...
This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-7-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:21 -05:00
181103cd52
virtio: remove the function pointer.
...
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05:00
292c8e50d5
virtio-scsi: create VirtIOSCSICommon
...
This patch refactors existing virtio-scsi code into VirtIOSCSICommon
in order to allow virtio_scsi_init_common() to be used by both internal
virtio_scsi_init() and external vhost-scsi-pci code.
Cc: Michael S. Tsirkin <mst@redhat.com >
Cc: Asias He <asias@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-19 16:17:56 +02:00
6e7907468f
hw: move virtio devices to hw/ subdirectories
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00