]> git.proxmox.com Git - mirror_qemu.git/commit
scsi: fix sense code for EREMOTEIO
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Mar 2021 13:56:42 +0000 (14:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Mar 2021 18:30:30 +0000 (14:30 -0400)
commitdc293f60b02ff9a4d51ccae153b1685cc8a34d79
tree59e53f66ee8cf12b8b83d61472e27dd8a5ef3f36
parent26dbec410e9f5194767d17fd19cb64fc1f487e1b
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>
scsi/utils.c