xen/x86: add some cr3 helpers
authorJuergen Gross <jgross@suse.com>
Thu, 26 Apr 2018 11:33:17 +0000 (13:33 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 4 May 2018 14:55:07 +0000 (15:55 +0100)
commit1a32c9868711b4ee883ebb6f8807e08d70a920be
treeaa90f3e5ac72d34a683524e83eb99efeeb2c22d3
parenta5407c1d8c6c0cac96d3e84e7b2b25b18fa2bf4d
xen/x86: add some cr3 helpers

Add some helper macros to access the address and pcid parts of cr3.

Use those helpers where appropriate.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/debug.c
xen/arch/x86/domain_page.c
xen/include/asm-x86/processor.h
xen/include/asm-x86/x86-defns.h