From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 22 Oct 2019 17:05:03 -0000 Received: from mga11.intel.com ([192.55.52.93]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMxag-0002pK-LS for speck@linutronix.de; Tue, 22 Oct 2019 19:05:03 +0200 Date: Tue, 22 Oct 2019 09:58:50 -0700 From: Pawan Gupta Subject: [MODERATED] Re: [PATCH v7 03/10] TAAv7 3 Message-ID: <20191022165850.GC29216@guptapadev.amr> References: <20191022143818.GE31458@zn.tnic> MIME-Version: 1.0 In-Reply-To: <20191022143818.GE31458@zn.tnic> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Tue, Oct 22, 2019 at 04:38:18PM +0200, speck for Borislav Petkov wrote: > On Mon, Oct 21, 2019 at 01:25:02PM -0700, speck for Pawan Gupta wrote: > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > > index 897c8302d982..885d4ac2111a 100644 > > --- a/arch/x86/kernel/cpu/common.c > > +++ b/arch/x86/kernel/cpu/common.c > > @@ -1561,6 +1561,8 @@ void __init identify_boot_cpu(void) > > #endif > > cpu_detect_tlb(&boot_cpu_data); > > setup_cr_pinning(); > > + > > + tsx_init(); > > } > > > > Why is this called here instead of in check_bugs()? As this as per the feedback, because TSX is actually a feature. Thanks, Pawan