tools/libxc: Construct 32bit PV guests with L3 A/D bits set
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Jan 2020 12:17:45 +0000 (12:17 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Jan 2020 19:26:09 +0000 (19:26 +0000)
commitad0b3df0f58451c9df26e455148b2d33957bc347
tree92066782b46dfe35d523b654742e7964320b9ceb
parentaacc143006429de46932aabae17c13846c71fa45
tools/libxc: Construct 32bit PV guests with L3 A/D bits set

With the 32 PAE build of Xen gone, 32bit PV guests' top level pagetables no
longer behave exactly like PAE in hardware.

They should have A/D bits set, for the same performance reasons as apply to
other levels.  This brings the domain builder in line with how Xen constructs
a 32bit dom0.

As a purely code improvement, make use of range notation to initialise
identical values in adjacent array elements.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxc/xc_dom_x86.c