x86/mem_access: move p2m_mem_access_sanity_check() from header
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Wed, 21 Nov 2018 09:55:21 +0000 (10:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:55:21 +0000 (10:55 +0100)
commit56d2e9786a3ba7b9a92ea3e9fac18e2892f9f38b
tree6eabcf3b6a2eb0f592ee4f0a87f3212d216eb424
parent0502e0adae25f8d9e5b3f02320aa2859041f205d
x86/mem_access: move p2m_mem_access_sanity_check() from header

Move p2m_mem_access_sanity_check() from the asm-x86/mem_access.h
header, where it currently is declared inline, to
arch/x86/mm/mem_access.c. This allows source code that includes it
directly, or indirectly (such as xen/mem_access.h), to not worry
about also including sched.h for is_hvm_domain(). Including
xen/mem_access.h is useful for code wanting to use p2m_access_t.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_access.c
xen/include/asm-x86/mem_access.h