qemu-e2k/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
pr-manager-stub.c
pr-manager.c
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