ia64/xen-unstable

changeset 10825:d60da1c0664d

Clear MPT l2 entries when allocating monitor pagetable
Changeset 10734 removed the code clearing MPT l2 entries, however
these entries are stained when copying from idle_pg_table_l2.

Signed-off-by: Xin Li <xin.b.li@intel.com>
author kfraser@localhost.localdomain
date Thu Jul 27 13:18:36 2006 +0100 (2006-07-27)
parents b42b80403ddd
children 38943ca3c8cc
files xen/arch/x86/shadow_public.c
line diff
     1.1 --- a/xen/arch/x86/shadow_public.c	Thu Jul 27 13:17:58 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow_public.c	Thu Jul 27 13:18:36 2006 +0100
     1.3 @@ -438,6 +438,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 +    for ( i = 0; i < (MACHPHYS_MBYTES >> (L2_PAGETABLE_SHIFT - 20)); i++ )
     1.8 +        mpl2e[l2_table_offset(RO_MPT_VIRT_START) + i] = l2e_empty();
     1.9  
    1.10      if ( v->vcpu_id == 0 )
    1.11      {