scsi: force unit access on VERIFY
Also DMA data from the host, to avoid that the host reports anunderrun.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scsi: make code more homogeneous in AIO callback functions
First scsi_flush_complete, like scsi_dma_complete, is always called withan active AIOCB.
Second, always test for "ret < 0" to check for errors.
scsi: move scsi_flush_complete around
scsi: add support for FUA on writes
To force unit access, add a flush operation after the actual write.WRITE AND VERIFY commands always flush according to SBC, so do iteven though we do not perform the reread.
scsi: add missing test for cancelled request
scsi: fix memory leak
scsibus_get_dev_path is leaking id if it is not NULL. Fix it.
Reported-by: Laszlo Ersek <lersek@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.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: add virtio_queue_get_id
Serializing virtio-scsi requests needs a simple way to get from aVirtQueue to the number of the queue. The virtio_queue_get_idprovides this.
virtio-scsi: add multiqueue capability
Adding multiqueue is as simple as creating more than one virtqueues,and saving the queue number for each request.
pseries: Fix reset of VIO network device
Currently, the PAPR VIO network device does not have a reset handler. Thismeans that after a hard reset, H_REGISTER_LOGICAL_LAN will return an errorwhen the new guest boot attempts to initialize the device.
This patch corrects this, adding a suitable reset hook....
View revisions
Also available in: Atom