Re: [Xen-devel] [PATCH v4 15/26] x86/cpu: Rework Intel masking/faulting setup

2016-04-05 Thread Andrew Cooper
On 28/03/16 20:14, Konrad Rzeszutek Wilk wrote: >> + * Context switch levelling state to the next domain. A parameter of NULL >> is >> + * used to context switch to the default host state, and is used by the >> BSP/AP >> + * startup code. >> + */ >> +static void intel_ctxt_switch_levelling(const

Re: [Xen-devel] [PATCH v4 15/26] x86/cpu: Rework Intel masking/faulting setup

2016-03-28 Thread Konrad Rzeszutek Wilk
> + * Context switch levelling state to the next domain. A parameter of NULL is > + * used to context switch to the default host state, and is used by the > BSP/AP > + * startup code. > + */ > +static void intel_ctxt_switch_levelling(const struct domain *nextd) > +{ > + struct cpuidmasks *the

[Xen-devel] [PATCH v4 15/26] x86/cpu: Rework Intel masking/faulting setup

2016-03-23 Thread Andrew Cooper
This patch is best reviewed as its end result rather than as a diff, as it rewrites almost all of the setup. On the BSP, cpuid information is used to evaluate the potential available set of masking MSRs, and they are unconditionally probed, filling in the availability information and hardware defa