History | View | Annotate | Download (21.8 kB)
virtio-scsi: abort in-flight I/O when the device is reset
When the device is reset, the SCSI bus should also be reset sothat in-flight I/O is cancelled.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-scsi: Fix some endian bugs with virtio-scsi
The virtio-scsi specification does not specify the correct endianness forfields in the request structure. It's therefore best to assume that it is"guest native" endian since that's the (stupid and poorly defined) norm in...
virtio-scsi: Fix subtle (guest) endian bug
The virtio-scsi config space is, by specification, in guest endian (whichis ill-defined, but there you go). In virtio_scsi_get_config() we set upall the fields in there, using stl_raw(). Which is a problem for the...
virtio-scsi: use dma_context_memory
Until address_space_rw was introduced, NULL was accepted as aplaceholder for DMA with no IOMMU (to address_space_memory).
This does not work anymore, and dma_context_memory needs tobe specified explicitly.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virtio-scsi: factor checks for VIRTIO_SCSI_S_DRIVER_OK when reporting events
Suggested by Laszlo Ersek.
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.
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