x86/EPT: squash meaningless TLB flush
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:13:06 +0000 (10:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:13:06 +0000 (10:13 +0100)
commit4a59e6bb3a96f5ebca95d162b2a81b3e68b076a2
tree5dba220db20b5fe92b54b773b0e6db6384878972
parentf1e268b9fd13647e1f69c8ce0ae7be401d319fc8
x86/EPT: squash meaningless TLB flush

ept_free_entry() gets called after a flush was already issued, if one is
necessary in the first place. That behavior is similar to NPT, which
also doesn't have any further flush in p2m_free_entry(). (Furthermore,
the function being recursive, in case of recursiveness way too many
flushes would have been issued.)

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