x86/mm: p2m_add_foreign() is HVM-only
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Dec 2020 11:01:12 +0000 (12:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Dec 2020 11:01:12 +0000 (12:01 +0100)
commitd4f699a0df6cea907c1de5c277500b98c0729685
tree5e3dbb66a964880f5af20856f8e21b4c7a2d1595
parente93c3712d67098453760fd61c338cbf62dd08da1
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/common/memory.c
xen/include/asm-x86/p2m.h