ia64/xen-unstable

changeset 15084:5f6da38ff828

xen: Better handling on not-present PDEs in destroy_xen_mappings().
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sat May 12 12:37:51 2007 +0100 (2007-05-12)
parents 03a13457d993
children e527b4ff1948
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Sat May 12 12:07:01 2007 +0100
     1.2 +++ b/xen/arch/x86/mm.c	Sat May 12 12:37:51 2007 +0100
     1.3 @@ -3503,7 +3503,8 @@ void destroy_xen_mappings(unsigned long 
     1.4  
     1.5          if ( !(l2e_get_flags(*pl2e) & _PAGE_PRESENT) )
     1.6          {
     1.7 -            v += PAGE_SIZE;
     1.8 +            v += 1UL << L2_PAGETABLE_SHIFT;
     1.9 +            v &= ~((1UL << L2_PAGETABLE_SHIFT) - 1);
    1.10              continue;
    1.11          }
    1.12