[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Fix writable-pagetable cmpxchg path to properly adjust PTE (i.e.,



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1192697960 -3600
# Node ID 2173fe77dcd216dc278a43f59430915a5b53180d
# Parent  16f5672879c82532cdba3f4faf737a552030ccb9
x86: Fix writable-pagetable cmpxchg path to properly adjust PTE (i.e.,
set _PAGE_GLOBAL for x86/64 guest user mappings).
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/mm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 16f5672879c8 -r 2173fe77dcd2 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Wed Oct 17 15:37:36 2007 +0100
+++ b/xen/arch/x86/mm.c Thu Oct 18 09:59:20 2007 +0100
@@ -3403,7 +3403,7 @@ static int ptwr_emulated_update(
         ol1e = l1e_from_intpte(old);
 
         okay = paging_cmpxchg_guest_entry(v, &l1e_get_intpte(*pl1e),
-                                          &t, val, _mfn(mfn));
+                                          &t, l1e_get_intpte(nl1e), _mfn(mfn));
         okay = (okay && t == old);
 
         if ( !okay )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.