p2m/ept: pass correct level to atomic_write_ept_entry in ept_invalidate_emt
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 23 Sep 2019 12:39:37 +0000 (14:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2019 12:39:37 +0000 (14:39 +0200)
commit802f9940fe9ba80253a3e8b652ae9f6f21703993
tree37bcc41695f33fdb8e267a2db539dd800c599181
parent10582ea1f9cebc1a290b04d8cb24bf31326a6b35
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>.
master commit: b806c91275fb1ab7696ebf033b56631693056c90
master date: 2019-08-28 16:57:36 +0200
xen/arch/x86/mm/p2m-ept.c