x86/P2M: split out init/teardown functions
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:44:05 +0000 (14:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:44:05 +0000 (14:44 +0200)
commite2b2ff6779580a3a56f338a81e8d74ec30eead8c
tree1ea9a7fc7f61354b631ced6a5d991cdefd1a5887
parent26c719f67e71d5ff4cabc44cba37de2155204cbb
x86/P2M: split out init/teardown functions

Mostly just code movement, and certainly no functional change intended.
In p2m_final_teardown() the calls to p2m_teardown_{alt,nested}p2m() need
to be guarded by an is_hvm_domain() check now, though. This matches
p2m_init(). And p2m_is_logdirty_range() also gets moved inside the (so
far) adjacent #ifdef.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/include/asm/hvm/vmx/vmx.h
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/altp2m.c
xen/arch/x86/mm/mm-locks.h
xen/arch/x86/mm/nested.c [new file with mode: 0644]
xen/arch/x86/mm/p2m-basic.c [new file with mode: 0644]
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/p2m.h