mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
PAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
ow of no PAE specific outstanding issues. Go find some :-) Signed-off-by: ian@xensource.com
This commit is contained in:
1 parent
1d595a775e
commit
5a3294e534
1 file changed
+1
-1
@@ -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 )
|
||||
|
||||