qemu/scsi
Paolo Bonzini dc293f60b0 scsi: fix sense code for EREMOTEIO
SENSE_CODE(LUN_COMM_FAILURE) has an ABORTED COMMAND sense key,
so it results in a retry in Linux.  To ensure that EREMOTEIO
is forwarded to the guest, use a HARDWARE ERROR sense key
instead.  Note that the code before commit d7a84021d was incorrect
because it used HARDWARE_ERROR as a SCSI status, not as a sense
key.

Reported-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-03-16 14:30:30 -04:00
..
meson.build
pr-helper.h
pr-manager-helper.c Pull request trivial patches 20200919 2020-09-22 15:42:23 +01:00
pr-manager-stub.c
pr-manager.c qapi: Use QAPI_LIST_APPEND in trivial cases 2021-01-28 08:08:45 +01:00
qemu-pr-helper.c scsi: inline sg_io_sense_from_errno() into the callers. 2021-03-06 11:42:56 +01:00
trace-events
trace.h
utils.c scsi: fix sense code for EREMOTEIO 2021-03-16 14:30:30 -04:00