Re: [patch 16/24] x86/speculation: Prepare for per task indirect branch speculation control

2018-11-21 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Tim Chen > > To avoid the overhead of STIBP always on, it's necessary to allow per task > control of STIBP. > > Add a new task flag TIF_SPEC_IB and evaluate it during context switch if > SMT is active and flag evaluation is enabled by the speculation control

Re: [patch 16/24] x86/speculation: Prepare for per task indirect branch speculation control

2018-11-21 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Tim Chen > > To avoid the overhead of STIBP always on, it's necessary to allow per task > control of STIBP. > > Add a new task flag TIF_SPEC_IB and evaluate it during context switch if > SMT is active and flag evaluation is enabled by the speculation control

[patch 16/24] x86/speculation: Prepare for per task indirect branch speculation control

2018-11-21 Thread Thomas Gleixner
From: Tim Chen To avoid the overhead of STIBP always on, it's necessary to allow per task control of STIBP. Add a new task flag TIF_SPEC_IB and evaluate it during context switch if SMT is active and flag evaluation is enabled by the speculation control code. Add the conditional evaluation to

[patch 16/24] x86/speculation: Prepare for per task indirect branch speculation control

2018-11-21 Thread Thomas Gleixner
From: Tim Chen To avoid the overhead of STIBP always on, it's necessary to allow per task control of STIBP. Add a new task flag TIF_SPEC_IB and evaluate it during context switch if SMT is active and flag evaluation is enabled by the speculation control code. Add the conditional evaluation to