Here is v3 of the virtio-scsi driver. Changes are: - the virtio id is now 8, to fix a conflict in the virtio spec;
- rebased for QOM; - changed the resid type to size_t following Stefan's advice; - fixed sense length (patch from Christian Hoff). The spec has been committed by Rusty (version 0.9.4), and SCSI maintainers should be okay with including it in the 3.4 kernel. Paolo Bonzini (13): dma-helpers: make QEMUSGList target independent dma-helpers: add dma_buf_read and dma_buf_write dma-helpers: add accounting wrappers ahci: use new DMA helpers scsi: pass residual amount to command_complete scsi: add scatter/gather functionality scsi-disk: enable scatter/gather functionality scsi: add SCSIDevice vmstate definitions scsi-generic: add migration support scsi-disk: add migration support virtio-scsi: add basic SCSI bus operation virtio-scsi: process control queue requests virtio-scsi: add migration support Stefan Hajnoczi (2): virtio-scsi: Add virtio-scsi stub device virtio-scsi: Add basic request processing infrastructure Makefile.target | 1 + default-configs/pci.mak | 1 + default-configs/s390x-softmmu.mak | 1 + dma-helpers.c | 36 +++ dma.h | 20 +- hw/esp.c | 3 +- hw/ide/ahci.c | 82 +----- hw/lsi53c895a.c | 2 +- hw/pci.h | 1 + hw/s390-virtio-bus.c | 34 ++ hw/s390-virtio-bus.h | 4 +- hw/scsi-bus.c | 142 +++++++++- hw/scsi-disk.c | 120 +++++++- hw/scsi-generic.c | 25 ++ hw/scsi.h | 22 ++- hw/spapr_vscsi.c | 2 +- hw/usb-msd.c | 2 +- hw/virtio-pci.c | 56 ++++ hw/virtio-pci.h | 2 + hw/virtio-scsi.c | 607 +++++++++++++++++++++++++++++++++++++ hw/virtio-scsi.h | 36 +++ hw/virtio.h | 3 + 22 files changed, 1098 insertions(+), 104 deletions(-) create mode 100644 hw/virtio-scsi.c create mode 100644 hw/virtio-scsi.h -- 1.7.7.6