PAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Sun, 21 Aug 2005 00:10:30 +0000 (00:10 +0000)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Sun, 21 Aug 2005 00:10:30 +0000 (00:10 +0000)
ow of no PAE specific outstanding issues. Go find some :-)
Signed-off-by: ian@xensource.com
xen/arch/x86/domain_build.c

index bde7d8ef313cce67fec7b9b2665797615cf857de..939aaf999278733ae6aa98afcbf56cd7d6a1e3e4 100644 (file)
@@ -72,7 +72,7 @@ boolean_param("dom0_translate", opt_dom0_translate);
 static struct pfn_info *alloc_largest(struct domain *d, unsigned long max)
 {
     struct pfn_info *page;
-    unsigned int order = get_order(max * PAGE_SIZE);
+    unsigned int order = get_order(max)+PAGE_SHIFT-1;
     if ( (max & (max-1)) != 0 )
         order--;
     while ( (page = alloc_domheap_pages(d, order, 0)) == NULL )