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] blkfront/back and sector size of 2048 with CDROM's

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] blkfront/back and sector size of 2048 with CDROM's
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 05 Feb 2008 08:30:43 +0000
Delivery-date: Tue, 05 Feb 2008 00:31:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0131AAA1@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Achni2ggR2p2caN2Szy4krhWTtOFHgARf1zQ
Thread-topic: [Xen-devel] blkfront/back and sector size of 2048 with CDROM's
User-agent: Microsoft-Entourage/11.3.6.070618
On 5/2/08 00:09, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> It looks like mounting a physical CDROM under the windows gpl pv drivers
> doesn't work, and I suspect that the problem is because the CDROM uses a
> sector size of 2048 instead of 512.
> 
> Do the pages passed between the front and backend scale to using
> different sector sizes, or do I have to do some magic to fudge them back
> to 512?

The 'sectors' referenced in blkif requests are always 512 bytes. So if you
read 'sector-size' of 2048 from xenstore during blkif setup, that means that
the #sector alignments and sizes you send in requests must be multiples of
4.

 -- Keir



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