Re: [PATCH 4/4] x86/PV: properly set shadow allocation for Dom0

2021-08-31 Thread Tim Deegan
At 15:03 +0200 on 30 Aug (1630335824), Jan Beulich wrote: > 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, on

Re: [PATCH 4/4] x86/PV: properly set shadow allocation for Dom0

2021-08-31 Thread Jan Beulich
On 31.08.2021 15:47, Andrew Cooper wrote: > On 30/08/2021 14:03, Jan Beulich wrote: >> @@ -933,7 +934,17 @@ int __init dom0_construct_pv(struct doma >> #ifdef CONFIG_SHADOW_PAGING >> if ( opt_dom0_shadow ) >> { >> +bool preempted; >> + >> printk("Switching dom0 to using

Re: [PATCH 4/4] x86/PV: properly set shadow allocation for Dom0

2021-08-31 Thread Andrew Cooper
On 30/08/2021 14:03, Jan Beulich wrote: > @@ -933,7 +934,17 @@ int __init dom0_construct_pv(struct doma > #ifdef CONFIG_SHADOW_PAGING > if ( opt_dom0_shadow ) > { > +bool preempted; > + > printk("Switching dom0 to using shadow paging\n"); > + > +do { > +

[PATCH 4/4] x86/PV: properly set shadow allocation for Dom0

2021-08-30 Thread Jan Beulich
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, on a best effort basis (again like done for PVH). Signed-off-by: