ia64/xen-unstable

changeset 11199:a88f8c6d9401

Fix 64bit shadow tracking
(The mask used to check for available shadows was off by 1 bit)

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author tdeegan@york.uk.xensource.com
date Thu Aug 17 18:39:10 2006 +0100 (2006-08-17)
parents 59f7fc3e5256
children a73aa6ec4c76
files xen/include/asm-x86/shadow2.h
line diff
     1.1 --- a/xen/include/asm-x86/shadow2.h	Thu Aug 17 17:10:13 2006 +0100
     1.2 +++ b/xen/include/asm-x86/shadow2.h	Thu Aug 17 18:39:10 2006 +0100
     1.3 @@ -489,7 +489,7 @@ shadow2_guest_physmap_remove_page(struct
     1.4   */
     1.5  #define PGC_SH2_type_to_index(_type) ((_type) >> PGC_SH2_type_shift)
     1.6  #define SH2F_page_type_mask \
     1.7 -    (((1u << PGC_SH2_type_to_index(PGC_SH2_max_shadow + 1u)) - 1u) - \
     1.8 +    (((1u << (PGC_SH2_type_to_index(PGC_SH2_max_shadow) + 1u)) - 1u) - \
     1.9       ((1u << PGC_SH2_type_to_index(PGC_SH2_min_shadow)) - 1u))
    1.10  
    1.11  #define SH2F_L1_32   (1u << PGC_SH2_type_to_index(PGC_SH2_l1_32_shadow))