WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] pvSCSI, autosense and REQUEST_SENSE

To: "Jun Kamada" <kama@xxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] pvSCSI, autosense and REQUEST_SENSE
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Dec 2008 21:32:27 +1100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 10 Dec 2008 02:33:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0154FF48@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D0154FF48@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclasDCZ530krzahSn+lrlamLMctxAAAh76w
Thread-topic: [Xen-devel] pvSCSI, autosense and REQUEST_SENSE
> Jun/xen-devel,
> 
> Currently, if an error occurs as a result of a pvSCSI operation, the
> sense data is automatically collected and placed into the sense
buffer.

<snip>

> I don't know enough about SCSI in general and Linux SCSI in particular
> to be sure about this, but I suspect that maybe pvSCSI is asking for
> autosense, and so the SCSI device is clearing it's check condition
(and
> the sense data), but Windows doesn't want the sense data.
> 
> Can anyone comment on my assumption about the operation of SCSI? If
> correct, I think we need a flag (VSCSIIF_ACT_SCSI_NO_SENSE perhaps)
that
> can be set with VSCSIIF_ACT_SCSI_CDB to indicate that autosense should
> not be performed...
> 

Following up on my own post, I briefly looked at the linux source of a
few drivers and I think Linux always gets the sense data and there is no
way to turn this off. I will therefore emulate the contingent allegiance
condition protocol and the REQUEST_SENSE command in my drivers, so no
change will be required to pvSCSI.

Thanks

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>