mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Make sure to cmpxchg entire pte on emulated ptwr path.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
c1a3a8bd90
commit
4ceac099b8
1 file changed
+1
-1
+1
-1
@@ -3115,7 +3115,7 @@ static int ptwr_emulated_update(
|
||||
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);
|
||||
|
||||