From: Chris Youb Subject: block ring interface: nr_segments = 0 results in BLKIF_RSP_ERROR Date: Thu, 24 Aug 2006 16:41:36 -0400 (EDT) Message-ID: <20060824204136.42852.qmail@web52104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1994305398==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1994305398== Content-Type: multipart/alternative; boundary="0-1505638370-1156452096=:41425" Content-Transfer-Encoding: 8bit --0-1505638370-1156452096=:41425 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am currently developing a blkfront.c for a custom OS over Xen 3.0.2-2. Typical I/O is working, however, I ran into an error while testing a corner case. On standard I/O, where { 1 <= nr_segments < BLKIF_MAX_SEGMENTS_PER_REQUEST } blkif_int()'s bret->status returns BLKIF_RSP_OKAY. Yet when { nr_segments == 0 } blkif_int's bret->status is non-zero. (Yes I realize this is an I/O call of zero-length.) I checked the documentation and section "8.2.2 Block ring interface" states the following but doesn't exclude 0: "nr_segments number of segments for scatter / gather IO described by this request" 1) Is it possible there is a problem w/ my front-end driver (ie does anyone else see this behaviour)? 2) If this is back-end related, shouldn't it just return BLKIF_RSP_OKAY? --------------------------------- Now you can have a huge leap forward in email: get the new Yahoo! Mail. --0-1505638370-1156452096=:41425 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I am currently developing a blkfront.c for a custom OS over Xen 3.0.2-2.  Typical I/O is working, however, I ran into an error while testing a corner case.
 
On standard I/O, where  { 1 <= nr_segments < BLKIF_MAX_SEGMENTS_PER_REQUEST } blkif_int()'s bret->status returns BLKIF_RSP_OKAY.
 
Yet when { nr_segments == 0 } blkif_int's bret->status is non-zero. (Yes I realize this is an I/O call of zero-length.)
 
I checked the documentation and section "8.2.2 Block ring interface" states the following but doesn't exclude 0:
 
"nr_segments
     number of segments for scatter / gather IO described by this request"
 
1) Is it possible there is a problem w/ my front-end driver (ie does anyone else see this behaviour)?
 
2) If this is back-end related, shouldn't it just return BLKIF_RSP_OKAY?


Now you can have a huge leap forward in email: get the new Yahoo! Mail. --0-1505638370-1156452096=:41425-- --===============1994305398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1994305398==--