From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation Date: Tue, 23 Jan 2018 15:22:35 -0800 Message-ID: <20180123232235.GT7844@tassilo.jf.intel.com> References: <1516476182-5153-1-git-send-email-karahmed@amazon.de> <1516476182-5153-10-git-send-email-karahmed@amazon.de> <243BE571-AF73-44B3-8D17-193F9E07686A@amacapital.net> <4e01a7a9-29e4-adcc-3f53-550fb7f3d370@amd.com> <1516724457.9521.156.camel@amazon.co.uk> <20180123224956.GQ7844@tassilo.jf.intel.com> <1516749276.13558.25.camel@amazon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: "thomas.lendacky@amd.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "ashok.raj@intel.com" , "Raslan, KarimAllah" , "arjan.van.de.ven@intel.com" , "arjan@linux.intel.com" , "bp@suse.de" , "tglx@linutronix.de" , "Janakarajan.Natarajan@amd.com" , "tim.c.chen@linux.intel.com" , "torvalds@linux-foundation.org" , "joro@8bytes.org" , "dan.j.williams@intel.com" , "x86@kernel.org" Return-path: Content-Disposition: inline In-Reply-To: <1516749276.13558.25.camel@amazon.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, Jan 23, 2018 at 11:14:36PM +0000, Woodhouse, David wrote: > On Tue, 2018-01-23 at 14:49 -0800, Andi Kleen wrote: > > > Not sure.  Maybe to start, the answer might be to allow it to be set for > > > the ultra-paranoid, but in general don't enable it by default.  Having it > > > enabled would be an alternative to someone deciding to disable SMT, since > > > that would have even more of a performance impact. > > > > I agree. A reasonable strategy would be to only enable it for > > processes that have dumpable disabled. This should be already set for > > high value processes like GPG, and allows others to opt-in if > > they need to. > > That seems to make sense, and I think was the solution we were > approaching for IBPB on context switch too, right? Right. -Andi