vscsi: send the CHECK_CONDITION status down together with autosense data
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Aug 2011 05:28:52 +0000 (05:28 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:05 +0000 (09:48 +0200)
commitf5b6ffcf2a94337df31e801dd11b34896bd4fe2b
treecc98cc6ed5f51a952f401682ab2a4b0405427bb4
parenta3d0abaecaa2981ad8c0036b6caf0ff1324fa57d
vscsi: send the CHECK_CONDITION status down together with autosense data

I introduced this bug in commit 05751d3 (vscsi: always use get_sense,
2011-08-03) because at the time there was no way to expose a sense
condition to SLOF and Linux manages to work around the bug.  However,
the bug becomes evident now that SCSI devices also report unit
attention on reset.

SLOF also has problems dealing with unit attention conditions, so
it still will not boot even with this fix (just like OpenBIOS).
IBM folks are aware of their part of the bug. :-)

Reported-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_vscsi.c