npt/shadow: allow getting foreign page table entries
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 27 Feb 2019 11:09:05 +0000 (12:09 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 28 Feb 2019 17:36:43 +0000 (17:36 +0000)
commitb50acc560b09ef7c7274011a95dff7121563f3f2
tree20dad63bd747ecbc04443e948858940ecd379201
parentce0224bf96a1a1f82391e27b34b5d21d12a757a5
npt/shadow: allow getting foreign page table entries

Current npt and shadow code to get an entry will always return
INVALID_MFN for foreign entries. Allow to return the entry mfn for
foreign entries, like it's done for grant table entries.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pt.c