x86/shadow: fold sh_x86_emulate_{write,cmpxchg}() into their only callers
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:43:54 +0000 (10:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:43:54 +0000 (10:43 +0100)
commit6161d9f27fcb6c48021e6928bb240dfa39d9f1d3
tree90a88e28e89dcd80332f9d2e1be468dba77043aa
parent96a041a015e975634376758027ede36a9f2a1d7d
x86/shadow: fold sh_x86_emulate_{write,cmpxchg}() into their only callers

The functions have a single caller only and are now guest paging type
independent (except for the tracing part), so have no need to exist as
standalone ones, let alone multiple times. Replace the two prior hooks
with just a single one for dealing with tracing.

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/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/mm/shadow/types.h
xen/include/asm-x86/paging.h