Skip to content

properly report SCSI status codes

Marcelo Tosatti qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Fix scsi-disk sense-key/status confusionqemu/hw/scsi-disk.c+25 -140 replies
2/3scsi-disk aio_flushqemu/hw/scsi-disk.c+12 -70 replies
3/3LSI rename sense variableqemu/hw/lsi53c895a.c+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [patch 0/3] properly report SCSI status codes

The scsi-disk implementation passes the sense key information to the driver ->completion() callback.

The LSI driver (and esp / usb storage too, apparently) are expecting a scsi status code. The sense key information should be returned in the sense buffer or later upon a REQUEST SENSE command.

For example, right now the guest interprets a completed command with HARDWARE_ERROR sense key as scsi status code "CONDITION MET".

As a separate note, the current barrier implementation in Linux ignores SCSI status errors (James Bottomley sent a patch to linux-scsi a few minutes ago on that).