]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/dev-storage.c
scsi: allow arbitrary LUNs
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 13 Aug 2011 16:55:17 +0000 (18:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:51 +0000 (19:25 +0200)
commit7e0380b9bbf7c40361e06e6e0d8675a55bd0dea0
tree47c51c55182c17aaf6cdfc461ace0ef497c1a664
parentba74307c5a3c2ff87d4596a10828faf7560d4552
scsi: allow arbitrary LUNs

This only requires changes in two places: in SCSIBus, we need to look
for a free LUN if somebody creates a device with a pre-existing scsi-id
but the default LUN (-1, meaning "search for a free spot"); in vSCSI,
we need to actually parse the LUN according to the SCSI spec.

For vSCSI, max_target/max_lun are set according to the logical unit
addressing format in SAM.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/esp.c
hw/lsi53c895a.c
hw/scsi-bus.c
hw/scsi.h
hw/spapr_vscsi.c
hw/usb-msd.c