Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Lendacky, Thomas
On 11/27/2018 02:30 PM, Thomas Gleixner wrote: > On Tue, 27 Nov 2018, Lendacky, Thomas wrote: >> On 11/25/2018 12:33 PM, Thomas Gleixner wrote: >>> +/* Update x86_spec_ctrl_base in case SMT state changed. */ >>> +static void update_stibp_strict(void) >>> { >>> - wrmsrl(MSR_IA32_SPEC_CTRL,

Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Lendacky, Thomas
On 11/27/2018 02:30 PM, Thomas Gleixner wrote: > On Tue, 27 Nov 2018, Lendacky, Thomas wrote: >> On 11/25/2018 12:33 PM, Thomas Gleixner wrote: >>> +/* Update x86_spec_ctrl_base in case SMT state changed. */ >>> +static void update_stibp_strict(void) >>> { >>> - wrmsrl(MSR_IA32_SPEC_CTRL,

Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Thomas Gleixner
On Tue, 27 Nov 2018, Lendacky, Thomas wrote: > On 11/25/2018 12:33 PM, Thomas Gleixner wrote: > > +/* Update x86_spec_ctrl_base in case SMT state changed. */ > > +static void update_stibp_strict(void) > > { > > - wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); > > + u64 mask =

Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Thomas Gleixner
On Tue, 27 Nov 2018, Lendacky, Thomas wrote: > On 11/25/2018 12:33 PM, Thomas Gleixner wrote: > > +/* Update x86_spec_ctrl_base in case SMT state changed. */ > > +static void update_stibp_strict(void) > > { > > - wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); > > + u64 mask =

Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Lendacky, Thomas
On 11/25/2018 12:33 PM, Thomas Gleixner wrote: > The upcoming fine grained per task STIBP control needs to be updated on CPU > hotplug as well. > > Split out the code which controls the strict mode so the prctl control code > can be added later. Mark the SMP function call argument __unused while

Re: [patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-27 Thread Lendacky, Thomas
On 11/25/2018 12:33 PM, Thomas Gleixner wrote: > The upcoming fine grained per task STIBP control needs to be updated on CPU > hotplug as well. > > Split out the code which controls the strict mode so the prctl control code > can be added later. Mark the SMP function call argument __unused while

[patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-25 Thread Thomas Gleixner
The upcoming fine grained per task STIBP control needs to be updated on CPU hotplug as well. Split out the code which controls the strict mode so the prctl control code can be added later. Mark the SMP function call argument __unused while at it. Signed-off-by: Thomas Gleixner --- v1 -> v2:

[patch V2 24/28] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-11-25 Thread Thomas Gleixner
The upcoming fine grained per task STIBP control needs to be updated on CPU hotplug as well. Split out the code which controls the strict mode so the prctl control code can be added later. Mark the SMP function call argument __unused while at it. Signed-off-by: Thomas Gleixner --- v1 -> v2: