qemu-e2k/hw/scsi
Nathan Whitehorn 3052f0d594 spapr_vscsi: Fix REPORT_LUNS handling
Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the well-known
LUN for REPORT_LUNS commands. This is required to implement the SAM and SPC
specifications.

Since SRP implements only a single SCSI target port per connection, the SRP
target is required to report all available LUNs in response to a REPORT_LUNS
command addressed either to LUN 0 or the well-known LUN. Instead, QEMU was
forwarding such requests to the first QEMU SCSI target, with the result that
initiators that relied on this feature would only see LUNs on the first QEMU
SCSI target.

Behavior for REPORT_LUNS commands addressed to any other LUN is not specified
by the standard and so is left unchanged. This preserves behavior under Linux
and SLOF, which enumerate possible LUNs by hand and so address no commands
either to LUN 0 or the well-known REPORT_LUNS LUN.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
[agraf: define constant as ULL for 32bit hosts]
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-03-05 03:06:26 +01:00
..
esp-pci.c
esp.c
lsi53c895a.c
Makefile.objs
megasas.c
mfi.h
scsi-bus.c scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b 2014-02-22 10:02:23 +01:00
scsi-disk.c scsi-disk: Add support for port WWN and index descriptors in VPD page 83h 2014-02-22 10:02:24 +01:00
scsi-generic.c scsi: Change scsi sense buf size to 252 2014-02-22 10:02:23 +01:00
spapr_vscsi.c spapr_vscsi: Fix REPORT_LUNS handling 2014-03-05 03:06:26 +01:00
srp.h
vhost-scsi.c
viosrp.h
virtio-scsi.c
vmw_pvscsi.c
vmw_pvscsi.h