ia64/xen-unstable
changeset 6182:d6e64adbff04
Fix special backptr values on x86/64 to avoid spurious
wrpt emulations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
wrpt emulations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Mon Aug 15 07:45:42 2005 +0000 (2005-08-15) |
parents | bf9351732ddf |
children | 60a8a5ca4291 |
files | xen/include/asm-x86/mm.h |
line diff
1.1 --- a/xen/include/asm-x86/mm.h Mon Aug 15 07:26:04 2005 +0000 1.2 +++ b/xen/include/asm-x86/mm.h Mon Aug 15 07:45:42 2005 +0000 1.3 @@ -90,12 +90,9 @@ struct pfn_info 1.4 #define PGT_va_shift 32 1.5 #define PGT_va_mask ((unsigned long)((1U<<28)-1)<<PGT_va_shift) 1.6 /* Is the back pointer still mutable (i.e. not fixed yet)? */ 1.7 - /* Use PML4 slot for HYPERVISOR_VIRT_START. 1.8 - 18 = L4_PAGETABLE_SHIFT - L2_PAGETABLE_SHIFT */ 1.9 -#define PGT_va_mutable ((unsigned long)(256U<<18)<<PGT_va_shift) 1.10 +#define PGT_va_mutable ((unsigned long)((1U<<28)-1)<<PGT_va_shift) 1.11 /* Is the back pointer unknown (e.g., p.t. is mapped at multiple VAs)? */ 1.12 - /* Use PML4 slot for HYPERVISOR_VIRT_START + 1 */ 1.13 -#define PGT_va_unknown ((unsigned long)(257U<<18)<<PGT_va_shift) 1.14 +#define PGT_va_unknown ((unsigned long)((1U<<28)-2)<<PGT_va_shift) 1.15 #endif 1.16 1.17 /* 16-bit count of uses of this frame as its current type. */