ia64/xen-unstable

changeset 18490:12f3edfab6ef

x86, shadow: Add new location of Linux direct-map to the places to
look for writable mappings.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Sep 12 16:45:37 2008 +0100 (2008-09-12)
parents 15b1c3d4459a
children 8f456fcd8af1
files xen/arch/x86/mm/shadow/common.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/common.c	Fri Sep 12 14:18:13 2008 +0100
     1.2 +++ b/xen/arch/x86/mm/shadow/common.c	Fri Sep 12 16:45:37 2008 +0100
     1.3 @@ -2385,11 +2385,13 @@ int sh_remove_write_access(struct vcpu *
     1.4                            + ((fault_addr & VADDR_MASK) >> 27), 3); break;
     1.5              }
     1.6  
     1.7 -            /* 64bit Linux direct map at 0xffff810000000000; older kernels 
     1.8 -             * had it at 0x0000010000000000UL */
     1.9 +            /* 64bit Linux direct map at 0xffff880000000000; older kernels
    1.10 +             * had it at 0xffff880000000000, and older kernels yet had it
    1.11 +             * at 0x0000010000000000UL */
    1.12              gfn = mfn_to_gfn(v->domain, gmfn); 
    1.13 -            GUESS(0xffff810000000000UL + (gfn << PAGE_SHIFT), 4); 
    1.14 -            GUESS(0x0000010000000000UL + (gfn << PAGE_SHIFT), 4); 
    1.15 +            GUESS(0xffff880000000000UL + (gfn << PAGE_SHIFT), 4);
    1.16 +            GUESS(0xffff810000000000UL + (gfn << PAGE_SHIFT), 4);
    1.17 +            GUESS(0x0000010000000000UL + (gfn << PAGE_SHIFT), 4);
    1.18              /*
    1.19               * 64bit Solaris kernel page map at
    1.20               * kpm_vbase; 0xfffffe0000000000UL