x86/PV: properly set shadow allocation for Dom0
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:14:24 +0000 (11:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:14:24 +0000 (11:14 +0100)
commitc037dfb909406de6febaaa2c2e05743186e1e07e
tree740a7688df0f469a76f4fbd747ac2b90cf6762a2
parent05657c6d1821dfc4e9a618767a942b3555406046
x86/PV: properly set shadow allocation for Dom0

Leaving shadow setup just to the L1TF tasklet means running Dom0 on a
minimally acceptable shadow memory pool, rather than what normally
would be used (also, for example, for PVH). Populate the pool before
triggering the tasklet (or in preparation for L1TF checking logic to
trigger it), on a best effort basis (again like done for PVH).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/pv/dom0_build.c