x86/boot: Wire up dom0=shadow for PV dom0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Sep 2018 17:50:01 +0000 (18:50 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 May 2019 14:59:00 +0000 (15:59 +0100)
commit8978d258bb455794aed521928b2cdf1e12098d73
tree4216de092bcc5cf5c581bdc5f680f0c5feb8b8b6
parent15ce091dd83d6c8fee7554d6916d45a83cef8b2e
x86/boot: Wire up dom0=shadow for PV dom0

This would have been very handy when debugging some pv-l1tf issues.  As there
is no cost to supporting it, wire it up.

Due to the way dom0 is constructed, switching into shadow mode must be done
after the pagetables are written, and because of partially being in dom0
context, shadow_enable() doesn't like the state it finds.

Reuse the pv_l1tf tasklet for convenience, which will switch dom0 into shadow
mode just before it starts executing.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.pandoc
xen/arch/x86/dom0_build.c
xen/arch/x86/pv/dom0_build.c