[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] macros for blkif frame_and_sectors


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Matt Chapman <matthewc@xxxxxx>
  • Date: Fri, 29 Jul 2005 16:52:39 -0600
  • Delivery-date: Fri, 29 Jul 2005 22:51:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

This patch adds two macros for construction of the
frame_and_sectors field in blkif messages, to eliminate the
"magic shifts" in the blkif code.

It also increases the number of bits representing the sector
number within a page, from 3 to 5, to allow page sizes up to
16K (needed for IA64).

Tested to still work on x86.

Matt


Signed-off-by: Matthew Chapman <matthewc@xxxxxx>

Attachment: blk1.diff
Description: Text document

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.