x86/mm: handle foreign mappings in p2m_entry_modify
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 27 Feb 2019 11:09:04 +0000 (12:09 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 28 Feb 2019 17:36:14 +0000 (17:36 +0000)
commitce0224bf96a1a1f82391e27b34b5d21d12a757a5
treed584e9ba37dc0d99ce1164f90057df48cae35da2
parent0d0f4d78e5d1e9ecc57e53253437a4d4b09f9d20
x86/mm: handle foreign mappings in p2m_entry_modify

So that the specific handling can be removed from
atomic_write_ept_entry and be shared with npt and shadow code.

This commit also removes the check that prevent non-ept PVH dom0 from
mapping foreign pages.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/shadow/common.c
xen/include/asm-x86/p2m.h