From: Keir Fraser Subject: Re: blkfront/back and sector size of 2048 with CDROM's Date: Tue, 05 Feb 2008 08:30:43 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper , xen-devel List-Id: xen-devel@lists.xenproject.org On 5/2/08 00:09, "James Harper" 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