[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-devel] blkfront/back and sector size of 2048 with CDROM's
> 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. Okay... a forinstance... I give windows a sector size of 2048 based on what I have read from xenstore. Windows isssues a read request for sector 1 (byte offset 2048), and a length of 1 sector. My read buffer is aligned at 1024 bytes into the page, so in the blkif request I set nr_segments = 1, sector_number = 4 (1 * (2048 / 512)), and in the first (and only) segment, first_sect = 2 and last_sect = 6. Does that sound right? Thanks James _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |