From: "George Dunlap" Subject: [PATCH] Add new location of Linux direct-map to the places to look for writable mappings Date: Fri, 12 Sep 2008 16:38:48 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel mailing list List-Id: xen-devel@lists.xenproject.org Add new location of Linux direct-map to the places to look for writable mappings. Signed-off-by: George Dunlap diff -r dbac9ee4d761 xen/arch/x86/mm/shadow/common.c --- a/xen/arch/x86/mm/shadow/common.c Mon Sep 08 16:02:13 2008 +0100 +++ b/xen/arch/x86/mm/shadow/common.c Fri Sep 12 16:42:32 2008 +0100 @@ -2385,9 +2385,11 @@ int sh_remove_write_access(struct vcpu * + ((fault_addr & VADDR_MASK) >> 27), 3); break; } - /* 64bit Linux direct map at 0xffff810000000000; older kernels - * had it at 0x0000010000000000UL */ + /* 64bit Linux direct map at 0xffff880000000000; older kernels + * had it at 0xffff880000000000, and older kernels yet had it + * at 0x0000010000000000UL */ gfn = mfn_to_gfn(v->domain, gmfn); + GUESS(0xffff880000000000UL + (gfn << PAGE_SHIFT), 4); GUESS(0xffff810000000000UL + (gfn << PAGE_SHIFT), 4); GUESS(0x0000010000000000UL + (gfn << PAGE_SHIFT), 4);