Re: [Patch v4 07/18] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-08 Thread Thomas Gleixner
Tim, On Wed, 7 Nov 2018, Tim Chen wrote: > On 11/03/2018 11:29 AM, Thomas Gleixner wrote: > > Tim, > > > > On Tue, 30 Oct 2018, Tim Chen wrote: > > > >> Change the SMT code paths check from using cpu_smt_control to > >> cpu_smt_enabled static key. This saves a branching check. > > > > and adds

Re: [Patch v4 07/18] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-07 Thread Tim Chen
On 11/03/2018 11:29 AM, Thomas Gleixner wrote: > Tim, > > On Tue, 30 Oct 2018, Tim Chen wrote: > >> Change the SMT code paths check from using cpu_smt_control to >> cpu_smt_enabled static key. This saves a branching check. > > and adds extra size to the kernel for the patching. The only reason

Re: [Patch v4 07/18] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-03 Thread Thomas Gleixner
Tim, On Tue, 30 Oct 2018, Tim Chen wrote: > Change the SMT code paths check from using cpu_smt_control to > cpu_smt_enabled static key. This saves a branching check. and adds extra size to the kernel for the patching. The only reason why it would make sense for kvm is that then the EXPORT of cp

[Patch v4 07/18] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-10-30 Thread Tim Chen
Change the SMT code paths check from using cpu_smt_control to cpu_smt_enabled static key. This saves a branching check. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c | 2 +- arch/x86/kvm/vmx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kerne