Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Ingo Molnar
* Tim Chen wrote: > On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > > > +* Avoid __switch_to_xtra() invocation when conditional stpib is > > s/stpib/stibp and: s/stibp/STIBP to make it consistent throughout the patchset. Thanks, Ingo

Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Ingo Molnar
* Tim Chen wrote: > On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > > > +* Avoid __switch_to_xtra() invocation when conditional stpib is > > s/stpib/stibp and: s/stibp/STIBP to make it consistent throughout the patchset. Thanks, Ingo

Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * Avoid __switch_to_xtra() invocation when conditional stpib is s/stpib/stibp Tim

Re: [patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Tim Chen
On 11/21/2018 12:14 PM, Thomas Gleixner wrote: > + * Avoid __switch_to_xtra() invocation when conditional stpib is s/stpib/stibp Tim

[patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Thomas Gleixner
The TIF_SPEC_IB bit does not need to be evaluated in the decision to invoke __switch_to_xtra() when: - CONFIG_SMP is disabled - The conditional STIPB mode is disabled The TIF_SPEC_IB bit still controls IBPB in both cases. Optimize it out by masking the bit at compile time for CONFIG_SMP=n

[patch 18/24] x86/speculation: Avoid __switch_to_xtra() calls

2018-11-21 Thread Thomas Gleixner
The TIF_SPEC_IB bit does not need to be evaluated in the decision to invoke __switch_to_xtra() when: - CONFIG_SMP is disabled - The conditional STIPB mode is disabled The TIF_SPEC_IB bit still controls IBPB in both cases. Optimize it out by masking the bit at compile time for CONFIG_SMP=n