x86/P2M: p2m_get_page_from_gfn() is HVM-only
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:45:37 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:45:37 +0000 (14:45 +0200)
commitc9e802e916423111652424a93d98f67ae7135afc
tree023bb1d3c5bc791d954485efd402ce2cf22e2b84
parente2b2ff6779580a3a56f338a81e8d74ec30eead8c
x86/P2M: p2m_get_page_from_gfn() is HVM-only

This function is the wrong layer to go through for PV guests. It happens
to work, but produces results which aren't fully consistent with
get_page_from_gfn(). The latter function, however, cannot be used in
map_domain_gfn() as it may not be the host P2M we mean to act on.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/guest_walk.c
xen/arch/x86/mm/p2m.c