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

[Xen-changelog] Make sure to cmpxchg entire pte on emulated ptwr path.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 978ce7f6a3eb82c126b83a1b8e8665f16ea90de4
# Parent  0cd6a23b8d6e0ccf91f48b0a93aa804faf655db9
Make sure to cmpxchg entire pte on emulated ptwr path.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 0cd6a23b8d6e -r 978ce7f6a3eb xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Thu Aug 18 18:02:46 2005
+++ b/xen/arch/x86/mm.c Thu Aug 18 18:17:08 2005
@@ -3115,7 +3115,7 @@
     if ( do_cmpxchg )
     {
         ol1e = l1e_from_intpte(old);
-        if ( cmpxchg((unsigned long *)pl1e, old, val) != old )
+        if ( cmpxchg((intpte_t *)pl1e, old, val) != old )
         {
             unmap_domain_page(pl1e);
             put_page_from_l1e(nl1e, d);

_______________________________________________
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®.