x86/EPT: minor local variable adjustment in ept_set_entry()
authorJan Beulich <jbeulich@suse.com>
Tue, 13 Apr 2021 08:18:08 +0000 (10:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Apr 2021 08:18:08 +0000 (10:18 +0200)
commit0faa6ef54af330867d836e99d34e8dc1e622b54f
treea6b2234305cec64001270cb3105d75d203cfd77a
parentd1de2d02cae568c3b81e6104d877a76d9570189d
x86/EPT: minor local variable adjustment in ept_set_entry()

Not having direct_mmio (used only once anyway) as a local variable gets
the epte_get_entry_emt() invocation here in better sync with the other
ones. While at it also reduce ipat's scope.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/mm/p2m-ept.c