Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Andrew Cooper
On 22/01/16 14:48, Jan Beulich wrote: On 22.01.16 at 15:42, wrote: >> On 22/01/16 14:33, Jan Beulich wrote: >> On 22.01.16 at 15:24, wrote: On 22/01/16 09:56, Jan Beulich wrote: On 16.12.15 at 22:24, wrote: >> --- a/xen/arch/x86/cpu/amd.c >> +++ b/xen/arch/x86/cpu/

Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Jan Beulich
>>> On 22.01.16 at 15:42, wrote: > On 22/01/16 14:33, Jan Beulich wrote: > On 22.01.16 at 15:24, wrote: >>> On 22/01/16 09:56, Jan Beulich wrote: >>> On 16.12.15 at 22:24, wrote: > --- a/xen/arch/x86/cpu/amd.c > +++ b/xen/arch/x86/cpu/amd.c > @@ -203,7 +203,9 @@ static void _

Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Andrew Cooper
On 22/01/16 14:33, Jan Beulich wrote: On 22.01.16 at 15:24, wrote: >> On 22/01/16 09:56, Jan Beulich wrote: >> On 16.12.15 at 22:24, wrote: --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -203,7 +203,9 @@ static void __init noinline probe_masking_msrs(void) >>

Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Jan Beulich
>>> On 22.01.16 at 15:24, wrote: > On 22/01/16 09:56, Jan Beulich wrote: > On 16.12.15 at 22:24, wrote: >>> --- a/xen/arch/x86/cpu/amd.c >>> +++ b/xen/arch/x86/cpu/amd.c >>> @@ -203,7 +203,9 @@ static void __init noinline probe_masking_msrs(void) >>> void amd_ctxt_switch_levelling(const stru

Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Andrew Cooper
On 22/01/16 09:56, Jan Beulich wrote: On 16.12.15 at 22:24, wrote: >> --- a/xen/arch/x86/cpu/amd.c >> +++ b/xen/arch/x86/cpu/amd.c >> @@ -203,7 +203,9 @@ static void __init noinline probe_masking_msrs(void) >> void amd_ctxt_switch_levelling(const struct domain *nextd) >> { >> struct cp

Re: [Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2016-01-22 Thread Jan Beulich
>>> On 16.12.15 at 22:24, wrote: > --- a/xen/arch/x86/cpu/amd.c > +++ b/xen/arch/x86/cpu/amd.c > @@ -203,7 +203,9 @@ static void __init noinline probe_masking_msrs(void) > void amd_ctxt_switch_levelling(const struct domain *nextd) > { > struct cpumasks *these_masks = &this_cpu(cpumasks); >

[Xen-devel] [PATCH RFC 29/31] x86/pv: Provide custom cpumasks for PV domains

2015-12-16 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 --- xen/arch/x86/cpu/amd.c | 4