x86/mm: p2m_add_foreign() is HVM-only
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:29:14 +0000 (13:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:29:14 +0000 (13:29 +0100)
commit8009c33b5179536e2ecce54462fe4cd069060f77
treeae7e5e37b3a4f1c6dbb321a458df112151a19729
parent173ae325026bd161ae5eecebda28dab2c7a80668
x86/mm: p2m_add_foreign() is HVM-only

This is the case also for xenmem_add_to_physmap_one(), as is it's only
caller of the function. Move the latter next to p2m_add_foreign(),
allowing it one to become static at the same time. While moving, adjust
indentation of the body of the main switch().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h