x86/shadow: re-use variables in shadow_get_page_from_l1e()
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Apr 2021 12:35:49 +0000 (14:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Apr 2021 12:35:49 +0000 (14:35 +0200)
commita76f6ea1ebc67f5ce27ee4a19c226dc0fd390d6b
treeb6eccc561378a383d478a93bdb9a0e4c02a01ca1
parent58850b9074d3e7affdf3bc94c84e417ecfa4d165
x86/shadow: re-use variables in shadow_get_page_from_l1e()

There's little point in doing multiple mfn_to_page() or page_get_owner()
on all the same MFN. Calculate them once at the start of the function.

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