x86/boot: Better describe the pagetable relocation loops
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Nov 2021 19:19:43 +0000 (19:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Dec 2021 20:02:55 +0000 (20:02 +0000)
commit3099ff3ce15481b4f1536470cb87ac0ebf82b7bb
tree72d82c1282b437cfc824ef08a62192ff06fdf59b
parenta15b143a5f1c20dc6893bc3e50873e308ef61d87
x86/boot: Better describe the pagetable relocation loops

The first loop relocates all reachable non-leaf entries in idle_pg_table[],
which includes l2_xenmap[511]'s reference to l1_fixmap_x[].

The second loop relocates only leaf mappings in l2_xenmap[], so update the
skip condition to be opposite to the first loop.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/setup.c