Hi all, here's my attempt to implement a 'Virtual FC' emulation for virtio-scsi, based on the presentation at the KVM Forum in Prague.
This doesn't so much implement the FC protocol per se, but rather enables virtio to pass in addition port information so that the guest can setup the FC infrastructure in sysfs. This patchset has a complementary patchset for the linux virtio-scsi driver which will be posted to the linux-scsi mailing list. As usual, comments and reviews are welcome. Hannes Reinecke (4): scsi: use 64-bit LUN virtio-scsi: implement target rescan virtio-scsi: Implement 'native LUN' feature scsi: support REPORT_LUNS for LUNs != 0 hw/scsi/esp.c | 6 +- hw/scsi/lsi53c895a.c | 7 +- hw/scsi/megasas.c | 24 +++-- hw/scsi/mptsas.c | 10 +- hw/scsi/scsi-bus.c | 149 ++++++++++++++++++--------- hw/scsi/scsi-disk.c | 22 +++- hw/scsi/scsi-generic.c | 2 +- hw/scsi/spapr_vscsi.c | 17 +-- hw/scsi/virtio-scsi.c | 90 ++++++++++++++-- hw/scsi/vmw_pvscsi.c | 22 ++-- hw/usb/dev-storage.c | 11 +- hw/usb/dev-uas.c | 27 ++--- include/hw/scsi/scsi.h | 62 +++++++++-- include/hw/virtio/virtio-scsi.h | 7 +- include/scsi/constants.h | 11 ++ include/standard-headers/linux/virtio_scsi.h | 16 +++ 16 files changed, 343 insertions(+), 140 deletions(-) -- 2.12.3