scsi: clarify sense codes for LUN0 emulation
commitded6ddc5a7b95217557fa360913d1213e12d4a6d
authorHannes Reinecke <hare@suse.de>
Fri, 4 Aug 2017 08:36:34 +0000 (4 10:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Aug 2017 08:40:20 +0000 (8 10:40 +0200)
tree1496e5859ea9a00b4a312f564df8e5d870c5bd8e
parent1b7ac7cab6a9abaf686fe7a7f4afea155c03d6a8
scsi: clarify sense codes for LUN0 emulation

The LUN0 emulation is just that, an emulation for a non-existing
LUN0. So we should be returning LUN_NOT_SUPPORTED for any request
coming from any other LUN.
And we should be aborting unhandled commands with INVALID OPCODE,
not LUN NOT SUPPORTED.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Message-Id: <1501835795-92331-4-git-send-email-hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c