x86/P2M: move map_domain_gfn() (again)
authorJan Beulich <jbeulich@suse.com>
Wed, 9 Feb 2022 11:48:59 +0000 (12:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Feb 2022 11:48:59 +0000 (12:48 +0100)
commit470f260d5315f0895915ab1433fd067e3b21540c
tree05639194261c11bcf60e2cc6a685ef51ea242f01
parent26294494ff07e11c585ced7b15d085497a16af73
x86/P2M: move map_domain_gfn() (again)

The main user is the guest walking code, so move it back there; commit
9a6787cc3809 ("x86/mm: build map_domain_gfn() just once") would perhaps
better have kept it there in the first place. This way it'll only get
built when it's actually needed (and still only once).

This also eliminates one more CONFIG_HVM conditional from p2m.c.

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