x86/mm: introduce l{1,2}t local variables to modify_xen_mappings
authorWei Liu <wei.liu2@citrix.com>
Tue, 7 Jan 2020 12:06:46 +0000 (12:06 +0000)
committerWei Liu <wl@xen.org>
Tue, 7 Jan 2020 13:33:19 +0000 (13:33 +0000)
commitf383de87a2fb077f1fdbd4594493af613b15c233
treea5aed7617351c878668ab73b9c0b7b2a59a14263
parent238a8da06d8ea92b3864e9be5aaa2450f77a6d01
x86/mm: introduce l{1,2}t local variables to modify_xen_mappings

The pl2e and pl1e variables are heavily (ab)used in that function.  It
is fine at the moment because all page tables are always mapped so
there is no need to track the life time of each variable.

We will soon have the requirement to map and unmap page tables. We
need to track the life time of each variable to avoid leakage.

Introduce some l{1,2}t variables with limited scope so that we can
track life time of pointers to xen page tables more easily.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c