]> Git Repo - qemu.git/commit
scsi: explicitly list guest-recoverable sense codes
authorPaolo Bonzini <[email protected]>
Tue, 2 Jul 2019 08:23:20 +0000 (10:23 +0200)
committerPaolo Bonzini <[email protected]>
Mon, 15 Jul 2019 09:20:42 +0000 (11:20 +0200)
commitbdf9613b7f87248eb84884b0bdff94e8ad0eab9b
treed4317b6e2fda7ceea1fe3b95295c0b9cbc7c84c2
parentd31347f5ff6c637a11245d244ff5449a94bf8256
scsi: explicitly list guest-recoverable sense codes

It's not really possible to fit all sense codes into errno codes,
especially in such a way that sense codes can be properly categorized as
either guest-recoverable or host-handled.  Create a new function that
checks for guest recoverable sense, then scsi_sense_buf_to_errno only
needs to be called for host handled sense codes.

Signed-off-by: Paolo Bonzini <[email protected]>
hw/scsi/scsi-disk.c
include/scsi/utils.h
scsi/utils.c
This page took 0.022468 seconds and 4 git commands to generate.