scsi-disk: pass guest recoverable errors through even for rerror=stop
commit782a78c9e994c2be23467262f50e885a0eb0d9fc
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2021 11:57:44 +0000 (24 12:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2021 13:14:32 +0000 (25 14:14 +0100)
tree6b18dc45d9f199351ac7648dbb183a7f85776f75
parentf63c68bc0f514694a958b2e84a204b7792d28b17
scsi-disk: pass guest recoverable errors through even for rerror=stop

Right now, recoverable sense values are only passed directly to the
guest only for rerror=report.  However, when rerror/werror are 'stop'
we still don't want the host to be involved on every UNIT ATTENTION
(especially considered that the QMP event will not have enough information
to act on the report).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c