x86/HAP: move nested-P2M flush calculations out of locked region
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Nov 2020 11:34:54 +0000 (12:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Nov 2020 11:34:54 +0000 (12:34 +0100)
commita7ab52f9e87c5140b8f0c5444c79d061a6985a2b
treebbcf46dc0def1685446f642c3fd110809290611f
parent7aa7629fa0ff9a4077d2ae092d49ca6cc69bc8d3
x86/HAP: move nested-P2M flush calculations out of locked region

By latching the old MFN into a local variable, these calculations don't
depend on anything but local variables anymore. Hence the point in time
when they get performed doesn't matter anymore, so they can be moved
past the locked region.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm/hap/hap.c