Here is the first sneak peek of virtio-scsi. It's on top of my scsi-sg branch at http://github.com/bonzini/qemu. I'm more interested in getting early reviews in the virtio side, so I'm omitting the scsi-specific patches that introduce support for scatter/gather I/O in the SCSI layer.
What's missing is 1) support for writable config space, 2) testing TMF, 3) events; 4) migration. The last two do not need to be in at the first commit, they can come later. Tested lightly with a seabios driver (see the seabios ML). The Linux driver will come next... Paolo Bonzini (2): virtio-scsi: add basic SCSI bus operation virtio-scsi: process control queue requests 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 + hw/pci.h | 1 + hw/virtio-pci.c | 42 ++++ hw/virtio-pci.h | 2 + hw/virtio-scsi.c | 502 +++++++++++++++++++++++++++++++++++++++++++++++ hw/virtio-scsi.h | 28 +++ hw/virtio.h | 3 + 8 files changed, 580 insertions(+), 0 deletions(-) create mode 100644 hw/virtio-scsi.c create mode 100644 hw/virtio-scsi.h -- 1.7.7.1