megasas: fixup device mapping
commit3f2cd4dd47719497540fb0e0aa0635e127f2838f
authorHannes Reinecke <hare@suse.de>
Wed, 29 Oct 2014 12:00:07 +0000 (29 13:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 10:29:00 +0000 (31 11:29 +0100)
tree8ce4d1b623a28cf30949c2770e6e22eee2546fed
parent7bd908491c4e62767fa959959f3560fb54e34c19
megasas: fixup device mapping

Logical drives can only be addressed with the 'target_id' number;
LUN numbers cannot be selected.
Physical drives can be selected with both, target and LUN id.

So we should disallow LUN numbers not equal to 0 when in
RAID mode.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/megasas.c
hw/scsi/mfi.h