x86/pv: Consistently use typesafe helpers in all files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 26 Aug 2017 10:40:56 +0000 (10:40 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Aug 2017 10:03:08 +0000 (11:03 +0100)
commit2f7cc6005a19b1945dd41af6e5fe0ad348c21d66
treedc27d13781af3355fe0df42bbeb1874740c6bd07
parentf71ebada585502e552ceea1be6178db6a38b6d57
x86/pv: Consistently use typesafe helpers in all files

Rather than having a mix of code behaviour.  This requires updating
pagetable_{get,from}_page() to use the non-overridden helpers.

This requires some adjustments in priv_op_{read,write}_cr(), which is most
easily done by switching CR3 handling to using mfn_t.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/callback.c
xen/arch/x86/pv/domain.c
xen/arch/x86/pv/emul-gate-op.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/pv/iret.c
xen/arch/x86/pv/traps.c
xen/include/asm-x86/page.h