ia64/xen-unstable

changeset 8114:a1e99c0104cb

Small fix for shadow mode: fix a p.t. limit check.

Signed-off-by:Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Nov 29 11:42:21 2005 +0100 (2005-11-29)
parents 3a54c21b65de
children d0ca851445e2
files xen/arch/x86/shadow.c xen/arch/x86/shadow32.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Tue Nov 29 11:40:16 2005 +0100
     1.2 +++ b/xen/arch/x86/shadow.c	Tue Nov 29 11:42:21 2005 +0100
     1.3 @@ -1333,7 +1333,7 @@ static u32 remove_all_write_access_in_pt
     1.4          i = (frame_table[readonly_gmfn].u.inuse.type_info & PGT_va_mask)
     1.5              >> PGT_va_shift;
     1.6  
     1.7 -        if ( (i >= 0 && i <= L1_PAGETABLE_ENTRIES) &&
     1.8 +        if ( (i >= 0 && i < L1_PAGETABLE_ENTRIES) &&
     1.9               !l1e_has_changed(pt[i], match, flags) &&
    1.10               fix_entry(d, &pt[i], &found, is_l1_shadow, max_refs_to_find) &&
    1.11               !prediction )
     2.1 --- a/xen/arch/x86/shadow32.c	Tue Nov 29 11:40:16 2005 +0100
     2.2 +++ b/xen/arch/x86/shadow32.c	Tue Nov 29 11:42:21 2005 +0100
     2.3 @@ -2146,7 +2146,7 @@ static u32 remove_all_write_access_in_pt
     2.4          i = (frame_table[readonly_gmfn].u.inuse.type_info & PGT_va_mask) 
     2.5              >> PGT_va_shift;
     2.6  
     2.7 -        if ( (i >= 0 && i <= L1_PAGETABLE_ENTRIES) &&
     2.8 +        if ( (i >= 0 && i < L1_PAGETABLE_ENTRIES) &&
     2.9               !l1e_has_changed(pt[i], match, flags) && 
    2.10               fix_entry(d, &pt[i], &found, is_l1_shadow, max_refs_to_find) &&
    2.11               !prediction )