x86/shadow: avoid extra local array variable
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2016 15:50:30 +0000 (16:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2016 15:50:30 +0000 (16:50 +0100)
commit119f09734a75c65c3084eeff6698bb3f357b4f96
tree415ccc88a6063984f816b137c3729380d9d09e16
parent2c80710a78c931457ed1215d19834efe26ff115d
x86/shadow: avoid extra local array variable

mfns[2] was there just because struct sh_emulate_ctxt's two MFN values
can't be used to hand to vmap(). Making the structure fields an array
avoids the extra copying.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h