ia64/xen-unstable

changeset 14498:e9a5ba552808

[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Wed Mar 21 17:17:08 2007 +0000 (2007-03-21)
parents c9ac275f8985
children 4e874484f4da
files xen/arch/x86/mm/shadow/types.h
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/types.h	Wed Mar 21 12:03:42 2007 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/types.h	Wed Mar 21 17:17:08 2007 +0000
     1.3 @@ -597,7 +597,7 @@ accumulate_guest_flags(struct vcpu *v, w
     1.4   * have reserved bits that we can use for this.
     1.5   */
     1.6  
     1.7 -#define SH_L1E_MAGIC 0xffffffff00000000ULL
     1.8 +#define SH_L1E_MAGIC 0xffffffff00000001ULL
     1.9  static inline int sh_l1e_is_magic(shadow_l1e_t sl1e)
    1.10  {
    1.11      return ((sl1e.l1 & SH_L1E_MAGIC) == SH_L1E_MAGIC);