From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Feb 2019 10:19:06 -0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gwlRY-00072L-Hv for speck@linutronix.de; Thu, 21 Feb 2019 11:19:04 +0100 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3E4F1AEA2 for ; Thu, 21 Feb 2019 10:18:59 +0000 (UTC) Date: Thu, 21 Feb 2019 11:18:56 +0100 From: Borislav Petkov Subject: [MODERATED] Re: [patch V2 06/10] MDS basics+ 6 Message-ID: <20190221101856.GD13125@zn.tnic> References: <20190220150753.665964899@linutronix.de> <20190220151400.501811184@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20190220151400.501811184@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Wed, Feb 20, 2019 at 04:07:59PM +0100, speck for Thomas Gleixner wrote: > Subject: [patch V2 06/10] x86/speculation/mds: Add mitigation control for M= DS > From: Thomas Gleixner >=20 > Now that the mitigations are in place, add a command line parameter to > control the mitigation, a mitigation selector function and a SMT update > mechanism. >=20 > This is the minimal straight forward initial implementation which just > provides an always on/off mode. The command line parameter is: >=20 > mds=3D[full|off|auto] >=20 > This is consistent with the existing mitigations for other speculative > hardware vulnerabilities. >=20 > The idle invocation is dynamically updated according to the SMT state of > the system similar to the dynamic update of the STIBP mitigation. >=20 > Signed-off-by: Thomas Gleixner > --- > Documentation/admin-guide/kernel-parameters.txt | 27 ++++++++ > arch/x86/include/asm/processor.h | 6 + > arch/x86/kernel/cpu/bugs.c | 76 +++++++++++++++++++= +++++ > 3 files changed, 109 insertions(+) Reviewed-by: Borislav Petkov --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20