x86/shadow: adjust TLB flushing in sh_unshadow_for_p2m_change()
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Jan 2021 15:51:19 +0000 (16:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Jan 2021 15:51:19 +0000 (16:51 +0100)
commit5b772457e8e549908d6a3fae6412e55c0f7258fb
tree5dd363e1e9b8cded0a68a58d51079f16c56bc527
parent1806d0875daebe600061fc94451401b19f5b6f2a
x86/shadow: adjust TLB flushing in sh_unshadow_for_p2m_change()

Accumulating transient state of d->dirty_cpumask in a local variable is
unnecessary here: The flush is fine to make with the dirty set at the
time of the call. With this, move the invocation to a central place at
the end of the function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c