x86: avoid explicit TLB flush when saving exec state
authorJan Beulich <jbeulich@suse.com>
Wed, 24 Jan 2018 16:59:22 +0000 (17:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Jan 2018 16:59:22 +0000 (17:59 +0100)
commit78e47fd0b9a6195d16ff29515da9094d74152f26
tree9f427be733bb5d57b394d0f0e88002c05c966c61
parentdf8234fd2c9eaa6c671524878f1e1257d584c536
x86: avoid explicit TLB flush when saving exec state

Now that it's obvious that only a single dirty CPU can exist for a vCPU,
it becomes clear that flush_mask() doesn't need to be invoked when
sync_local_execstate() was already run. And with the IPI handler
clearing FLUSH_TLB from the passed flags anyway if
__sync_local_execstate() returns true, it also becomes clear that
FLUSH_TLB doesn't need to be passed here in the first place; neither of
the two places actually have a need to flush the TLB in any event (quite
possibly FLUSH_TLB was being passed there solely for flush_area_mask()
to make it past its no-op check).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c