# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a1e99c0104cb3019e65fba1eb13847ac46726c73
# Parent 3a54c21b65de687347f7b4dd3563596eda0de120
Small fix for shadow mode: fix a p.t. limit check.
Signed-off-by:Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
diff -r 3a54c21b65de -r a1e99c0104cb xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c Tue Nov 29 10:40:16 2005
+++ b/xen/arch/x86/shadow.c Tue Nov 29 10:42:21 2005
@@ -1333,7 +1333,7 @@
i = (frame_table[readonly_gmfn].u.inuse.type_info & PGT_va_mask)
>> PGT_va_shift;
- if ( (i >= 0 && i <= L1_PAGETABLE_ENTRIES) &&
+ if ( (i >= 0 && i < L1_PAGETABLE_ENTRIES) &&
!l1e_has_changed(pt[i], match, flags) &&
fix_entry(d, &pt[i], &found, is_l1_shadow, max_refs_to_find) &&
!prediction )
diff -r 3a54c21b65de -r a1e99c0104cb xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c Tue Nov 29 10:40:16 2005
+++ b/xen/arch/x86/shadow32.c Tue Nov 29 10:42:21 2005
@@ -2146,7 +2146,7 @@
i = (frame_table[readonly_gmfn].u.inuse.type_info & PGT_va_mask)
>> PGT_va_shift;
- if ( (i >= 0 && i <= L1_PAGETABLE_ENTRIES) &&
+ if ( (i >= 0 && i < L1_PAGETABLE_ENTRIES) &&
!l1e_has_changed(pt[i], match, flags) &&
fix_entry(d, &pt[i], &found, is_l1_shadow, max_refs_to_find) &&
!prediction )
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|