History | View | Annotate | Download (21.6 kB)
Rename target_phys_addr_t to hwaddr
target_phys_addr_t is unwieldly, violates the C standard (_t suffixes arereserved) and its purpose doesn't match the name (most target_phys_addr_taddresses are not target specific). Replace it with a finger-friendly,...
virtio-scsi: add backwards-compatibility properties for 1.1 and earlier machines
Hotplug and parameter change are new in 1.2, disable them via compatproperties for pc-1.1 and earlier.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virtio-scsi: do not compare 32-bit QEMU tags against 64-bit virtio-scsi tags
This patch fixes a problem in handling task management functionsin virtio-scsi. The cause of the problem is a mismatch betweenthe size of the tag in QEMU (32-bit) and virtio-scsi (64-bit)....
virtio-scsi: Report missed events
When an event is reported but no buffers are present in the event vq,we can set a flag and report a dummy event as soon as one is added.
virtio-scsi: do not report dropped events after reset
virtio-scsi: report parameter change events
virtio-scsi: Implement hotplug support for virtio-scsi
Implement the hotplug() and hot_unplug() interfaces in virtio-scsi, by signalthe virtio_scsi.ko in guest kernel via event virtual queue.
The counterpart patch of virtio_scsi.ko will be sent soon in another thread....
virtio-scsi: do not crash on adding buffers to the event queue
The event queue is not supported yet and the handler does nothave to do much anyway when buffers are added. However, thehandler is called unconditionally by the virtio layer, and thisresults in a crash as soon as buffers are added to the event...
qbus: Make child devices links
Make qbus children show up as link<> properties. There is no stableaddressing for qbus children so we use an unstable naming convention.
This is okay in QOM though because the composition name is expected tobe what's stable....
virtio: check virtio_load return code
Otherwise we crash on error.
Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>Signed-off-by: Orit Wassermann <owasserm@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-scsi: prepare migration format for multiqueue
In order to restore requests correctly from a multitude of virtqueues,we need to store the id of the request queue that each request camefrom.
Do this even for single-queue, by storing a hard-coded zero, to...
virtio-scsi: add multiqueue capability
Adding multiqueue is as simple as creating more than one virtqueues,and saving the queue number for each request.
virtio-scsi: call unregister_savevm properly
This fixes a use-after-free when migrating after hot-unplug.
virtio-scsi: process control queue requests
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virtio-scsi: add migration support
virtio-scsi: Add basic request processing infrastructure
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virtio-scsi: add basic SCSI bus operation
virtio-scsi: Add virtio-scsi stub device
Add a useless virtio SCSI HBA device:
qemu -device virtio-scsi-pci