On 05/27/2011 03:04 PM, Christoph Hellwig wrote:
Requiring this code in the scsi drivers is a really bad idea. Not only
does it mean duplicating the implementation of REPORT LUNS and the illegal
LUN version of INQUIRY in every scsi LUN handler and the target driver,
but also an inconsitent topol
On Wed, May 25, 2011 at 05:20:59PM +0200, Paolo Bonzini wrote:
> I agree. This case of INQUIRY is needed because (for simplicity and
> backwards compatibility) you can hang a scsi-disk or scsi-generic device
> directly off the HBA, without the intermediate pseudo-device that handles
> dispatchi
On 05/25/2011 03:10 PM, Christoph Hellwig wrote:
On Fri, May 20, 2011 at 05:03:34PM +0200, Paolo Bonzini wrote:
This allows passthrough of devices with LUN != 0, by redirecting them to
LUN0 in the emulated target.
I'm not quite sure what this code is for. Each /dev/sg device reresents
a LUN.
On Fri, May 20, 2011 at 05:03:34PM +0200, Paolo Bonzini wrote:
> This allows passthrough of devices with LUN != 0, by redirecting them to
> LUN0 in the emulated target.
I'm not quite sure what this code is for. Each /dev/sg device reresents
a LUN. So if we want to suport multiple LUNs in qemu fo
This allows passthrough of devices with LUN != 0, by redirecting them to
LUN0 in the emulated target.
Signed-off-by: Paolo Bonzini
---
hw/scsi-generic.c | 38 +-
1 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/hw/scsi-generic.c b/hw/scsi-gene