qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch 0/3] properly report SCSI status codes
@ 2008-04-02 18:15 Marcelo Tosatti
  2008-04-02 18:16 ` [Qemu-devel] [patch 1/3] Fix scsi-disk sense-key/status confusion Marcelo Tosatti
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcelo Tosatti @ 2008-04-02 18:15 UTC (permalink / raw)
  To: Ian Jackson, Paul Brook; +Cc: qemu-devel

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). 

-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-02 18:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 18:15 [Qemu-devel] [patch 0/3] properly report SCSI status codes Marcelo Tosatti
2008-04-02 18:16 ` [Qemu-devel] [patch 1/3] Fix scsi-disk sense-key/status confusion Marcelo Tosatti
2008-04-02 18:16 ` [Qemu-devel] [patch 2/3] scsi-disk aio_flush Marcelo Tosatti
2008-04-02 18:16 ` [Qemu-devel] [patch 3/3] LSI rename sense variable Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).