x86/shadow: sh_{write,cmpxchg}_guest_entry() are PV-only
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:45:36 +0000 (14:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:45:36 +0000 (14:45 +0100)
commit06f04f54ba97fbb4d522d0aa11fcc50edf8eba5e
treef0a391d0231c8375e2ed095f9edaa97b567cbfad
parentf1f20bb3fab9c307d04b0dd55ec8c5b8ab36363a
x86/shadow: sh_{write,cmpxchg}_guest_entry() are PV-only

Move them to a new pv.c. Make the respective struct shadow_paging_mode
fields as well as the paging.h wrappers PV-only as well.

Take the liberty and switch both functions' "failed" local variables to
more appropriate types.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm.c
xen/arch/x86/mm/shadow/Makefile
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/mm/shadow/pv.c [new file with mode: 0644]
xen/include/asm-x86/paging.h