summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini2021-03-09 14:56:42 +0100
committerPaolo Bonzini2021-03-16 19:30:30 +0100
commitdc293f60b02ff9a4d51ccae153b1685cc8a34d79 (patch)
tree59e53f66ee8cf12b8b83d61472e27dd8a5ef3f36 /include
parentRevert "accel: kvm: Add aligment assert for kvm_log_clear_one_slot" (diff)
downloadqemu-dc293f60b02ff9a4d51ccae153b1685cc8a34d79.tar.gz
qemu-dc293f60b02ff9a4d51ccae153b1685cc8a34d79.tar.xz
qemu-dc293f60b02ff9a4d51ccae153b1685cc8a34d79.zip
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions