x86/p2m: write_p2m_entry_{pre,post} hooks are HVM-only
authorJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 13:29:49 +0000 (15:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 13:29:49 +0000 (15:29 +0200)
commit9b9ef2388c238a5b0d070a76a50efe696052bc52
treecc3be3c976b855f0f7ceabe36c92056d6827ced9
parent8d012d3ddffcf9433befb756e14200c9a810f137
x86/p2m: write_p2m_entry_{pre,post} hooks are HVM-only

Move respective shadow code to its HVM-only source file, thus making it
possible to exclude the hooks as well. This then shows that
shadow_p2m_init() also isn't needed in !HVM builds.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/hvm.c
xen/include/asm-x86/p2m.h