p2m/ept: pass correct level to atomic_write_ept_entry in ept_invalidate_emt
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 28 Aug 2019 14:57:36 +0000 (16:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Aug 2019 14:57:36 +0000 (16:57 +0200)
commitb806c91275fb1ab7696ebf033b56631693056c90
tree7cbc858010bb9d16c700fd0c0be78331d46eac14
parentde45e3ff37bb1602796054afabfa626ea5661c45
p2m/ept: pass correct level to atomic_write_ept_entry in ept_invalidate_emt

The level passed to ept_invalidate_emt corresponds to the EPT entry
passed as the mfn parameter, which is a pointer to an EPT page table,
hence the entries in that page table will have one level less than the
parent.

Fix the call to atomic_write_ept_entry to pass the correct level, ie:
one level less than the parent.

Fixes: 50fe6e73705 ('pvh dom0: add and remove foreign pages')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>.
xen/arch/x86/mm/p2m-ept.c