Re: [Xen-devel] [PATCH v2 21/30] x86/pv: Provide custom cpumasks for PV domains

2016-02-18 Thread Andrew Cooper
On 17/02/16 11:14, Jan Beulich wrote: On 17.02.16 at 12:03, wrote: >> On 17/02/16 08:13, Jan Beulich wrote: >> On 05.02.16 at 14:42, wrote: --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -208,7 +208,9 @@ static void __init noinline probe_masking_msrs(void) >>

Re: [Xen-devel] [PATCH v2 21/30] x86/pv: Provide custom cpumasks for PV domains

2016-02-17 Thread Jan Beulich
>>> On 17.02.16 at 12:03, wrote: > On 17/02/16 08:13, Jan Beulich wrote: > On 05.02.16 at 14:42, wrote: >>> --- a/xen/arch/x86/cpu/amd.c >>> +++ b/xen/arch/x86/cpu/amd.c >>> @@ -208,7 +208,9 @@ static void __init noinline probe_masking_msrs(void) >>> static void amd_ctxt_switch_levelling(con

Re: [Xen-devel] [PATCH v2 21/30] x86/pv: Provide custom cpumasks for PV domains

2016-02-17 Thread Andrew Cooper
On 17/02/16 08:13, Jan Beulich wrote: On 05.02.16 at 14:42, wrote: >> --- a/xen/arch/x86/cpu/amd.c >> +++ b/xen/arch/x86/cpu/amd.c >> @@ -208,7 +208,9 @@ static void __init noinline probe_masking_msrs(void) >> static void amd_ctxt_switch_levelling(const struct domain *nextd) >> { >> st

Re: [Xen-devel] [PATCH v2 21/30] x86/pv: Provide custom cpumasks for PV domains

2016-02-17 Thread Jan Beulich
>>> On 05.02.16 at 14:42, wrote: > --- a/xen/arch/x86/cpu/amd.c > +++ b/xen/arch/x86/cpu/amd.c > @@ -208,7 +208,9 @@ static void __init noinline probe_masking_msrs(void) > static void amd_ctxt_switch_levelling(const struct domain *nextd) > { > struct cpuidmasks *these_masks = &this_cpu(cpu

[Xen-devel] [PATCH v2 21/30] x86/pv: Provide custom cpumasks for PV domains

2016-02-05 Thread Andrew Cooper
And use them in preference to cpumask_defaults on context switch. HVM domains must not be masked (to avoid interfering with cpuid calls within the guest), so always lazily context switch to the host default. Signed-off-by: Andrew Cooper --- CC: Jan Beulich v2: * s/cpumasks/cpuidmasks/ * Use