x86/P2M: derive HVM-only variant from __get_gfn_type_access()
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:46:30 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:46:30 +0000 (14:46 +0200)
commitaa70b8959915b67b4e7a2516f743ab6ffe0f8a1b
treebf204613fd1f258d6bff9255dba1b65eb0911c44
parentc9e802e916423111652424a93d98f67ae7135afc
x86/P2M: derive HVM-only variant from __get_gfn_type_access()

Introduce an inline wrapper dealing with the non-translated-domain case,
while stripping that logic from the main function, which gets renamed to
p2m_get_gfn_type_access(). HVM-only callers can then directly use the
main function.

Along with renaming the main function also make its and the new inline
helper's GFN parameters type-safe.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/include/asm/p2m.h
xen/arch/x86/mm/mem_access.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m.c