Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbeAOAGF (ORCPT + 1 other); Sun, 14 Jan 2018 19:06:05 -0500 Received: from mga17.intel.com ([192.55.52.151]:60023 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbeAOAGE (ORCPT ); Sun, 14 Jan 2018 19:06:04 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,361,1511856000"; d="scan'208";a="9963660" Date: Sun, 14 Jan 2018 16:05:54 -0800 From: Andi Kleen To: pjt@google.com, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, riel@redhat.com, jikos@kernel.org, jpoimboe@redhat.com, luto@amacapital.net, torvalds@linux-foundation.org, tglx@linutronix.de, dwmw@amazon.co.uk, hpa@zytor.com, peterz@infradead.org, dave.hansen@intel.com, mingo@kernel.org, keescook@google.com, gregkh@linux-foundation.org, arjan@linux.intel.com Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/pti] x86/retpoline: Fill RSB on context switch for affected CPUs Message-ID: <20180115000554.GA7844@tassilo.jf.intel.com> References: <1515779365-9032-1-git-send-email-dwmw@amazon.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > + if ((!boot_cpu_has(X86_FEATURE_PTI) && > + !boot_cpu_has(X86_FEATURE_SMEP)) || is_skylake_era()) { > + setup_force_cpu_cap(X86_FEATURE_RSB_CTXSW); > + pr_info("Filling RSB on context switch\n"); > + } Missing an option to turn this off. -Andi