x86/mm: remove some indirection from {paging,sh}_cmpxchg_guest_entry()
authorJan Beulich <jbeulich@suse.com>
Mon, 28 Sep 2020 11:58:14 +0000 (13:58 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Oct 2020 11:28:37 +0000 (12:28 +0100)
commit30bfa535fa9de47c47d0655e502eaf23724f837b
tree5a5e7debb6736e30cb40bfec297d5ea766934f8e
parent1bc30c076a7f1678166934c080e1bf94b2c189af
x86/mm: remove some indirection from {paging,sh}_cmpxchg_guest_entry()

Make the functions more similar to cmpxchg() in that they now take an
integral "old" input and return the value read.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/mm/shadow/pv.c
xen/arch/x86/pv/mm.h
xen/arch/x86/pv/ro-page-fault.c
xen/include/asm-x86/paging.h