ia64/xen-unstable

changeset 9101:d9f980fabc18

Fix problems when creating HVM guest on PAE host with >4G physical memory.

Signed-off-by: Yunhong Jiang yunhong.jiang@intel.com
Signed-off-by: Jun Nakajima jun.nakajima@intel.com
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 02 11:03:34 2006 +0100 (2006-03-02)
parents eeac4fdf02ed
children e639d53330ba
files xen/arch/x86/shadow_public.c
line diff
     1.1 --- a/xen/arch/x86/shadow_public.c	Thu Mar 02 11:00:49 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow_public.c	Thu Mar 02 11:03:34 2006 +0100
     1.3 @@ -413,7 +413,8 @@ static void alloc_monitor_pagetable(stru
     1.4              (l3e_get_flags(mpl3e[i]) & _PAGE_PRESENT) ?
     1.5              l2e_from_pfn(l3e_get_pfn(mpl3e[i]), __PAGE_HYPERVISOR) :
     1.6              l2e_empty();
     1.7 -    mpl2e[l2_table_offset(RO_MPT_VIRT_START)] = l2e_empty();
     1.8 +    for ( i = 0; i < (MACHPHYS_MBYTES >> (L2_PAGETABLE_SHIFT - 20)); i++ )
     1.9 +        mpl2e[l2_table_offset(RO_MPT_VIRT_START) + i] = l2e_empty();
    1.10  
    1.11      v->arch.monitor_table = mk_pagetable(m3mfn << PAGE_SHIFT); /* < 4GB */
    1.12      v->arch.monitor_vtable = (l2_pgentry_t *) mpl3e;