summary refs log tree commit diff stats
path: root/scsi/utils.c
diff options
context:
space:
mode:
authorShinichiro Kawasaki <shinichiro.kawasaki@wdc.com>2019-07-02 10:08:00 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-15 11:20:42 +0200
commitd31347f5ff6c637a11245d244ff5449a94bf8256 (patch)
tree16022e2dd261b1a48f056a45d953f08680b58252 /scsi/utils.c
parent46cd24e7ed38191b5ab5c40a836d6c5b6b604f8a (diff)
downloadfocaccia-qemu-d31347f5ff6c637a11245d244ff5449a94bf8256.tar.gz
focaccia-qemu-d31347f5ff6c637a11245d244ff5449a94bf8256.zip
scsi-disk: pass sense correctly for guest-recoverable errors
When an error was passed down to the guest because it was recoverable,
the sense length was not copied from the SG_IO data.  As a result,
the guest saw the CHECK CONDITION status but not the sense data.

Signed-off-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scsi/utils.c')
0 files changed, 0 insertions, 0 deletions