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

[Xen-devel] [PATCH] The mpt entry is 4 bytes even on x86_64.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
  • Date: Thu, 25 Aug 2005 21:09:15 +0800
  • Delivery-date: Thu, 25 Aug 2005 13:07:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWpdjH9+JEVBJ7ZQGimv5VEBQ73pw==
  • Thread-topic: [PATCH] The mpt entry is 4 bytes even on x86_64.

The mpt entry is 4 bytes even on x86_64, so we use 4 when caculating mpt
size.

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r d8fd24b43080 xen/arch/x86/x86_64/mm.c
--- a/xen/arch/x86/x86_64/mm.c  Mon Aug 22 10:18:14 2005
+++ b/xen/arch/x86/x86_64/mm.c  Thu Aug 25 14:04:29 2005
@@ -98,7 +98,7 @@
      * Allocate and map the machine-to-phys table.
      * This also ensures L3 is present for fixmaps.
      */
-    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 8) )
+    for ( i = 0; i < max_page; i += ((1UL << L2_PAGETABLE_SHIFT) / 4) )
     {
         pg = alloc_domheap_pages(NULL, PAGETABLE_ORDER, 0);
         if ( pg == NULL )

_______________________________________________
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®.