x86/mm: split set_identity_p2m_entry() into PV and HVM parts
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:39:43 +0000 (14:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:39:43 +0000 (14:39 +0200)
commit21e9f2e212e6f022340dfc2c43810fcc66415c9c
tree1403d5fe587e01d1e4c40229cbefcfb840457bb0
parent9120b5737f517fe9d2a3936c38d3a2211630323b
x86/mm: split set_identity_p2m_entry() into PV and HVM parts

..., moving the former into the new physmap.c. Also call the new
functions directly from arch_iommu_hwdom_init() and
vpci_make_msix_hole(), as the PV/HVM split is explicit there.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/include/asm/p2m.h
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/physmap.c
xen/drivers/passthrough/x86/iommu.c
xen/drivers/vpci/msix.c