ia64/xen-unstable

changeset 9090:6734682d2fd0

Fix problems with HVM PAE guests with >4GB memory.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 01 23:41:43 2006 +0100 (2006-03-01)
parents 9bde2889635c
children b2d3117cc7ed
files xen/arch/x86/shadow.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Wed Mar 01 23:39:43 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow.c	Wed Mar 01 23:41:43 2006 +0100
     1.3 @@ -279,8 +279,8 @@ alloc_shadow_page(struct domain *d,
     1.4               psh_type == PGT_l4_shadow )      /* allocated for PAE PDP page */
     1.5              page = alloc_domheap_pages(NULL, 0, ALLOC_DOM_DMA);
     1.6          else if ( d->arch.ops->guest_paging_levels == PAGING_L3 &&
     1.7 -                  psh_type == PGT_l3_shadow ) /* allocated for PAE PDP page */
     1.8 -            page = alloc_domheap_pages(NULL, 0, ALLOC_DOM_DMA);
     1.9 +                  (psh_type == PGT_l3_shadow || psh_type == PGT_l4_shadow) )
    1.10 +            page = alloc_domheap_pages(NULL, 0, ALLOC_DOM_DMA); /* allocated for PAE PDP page */
    1.11          else
    1.12              page = alloc_domheap_page(NULL);
    1.13  #endif