From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fIJvg-0003ml-T3 for speck@linutronix.de; Mon, 14 May 2018 22:18:45 +0200 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4DC5DADCE for ; Mon, 14 May 2018 20:18:39 +0000 (UTC) Date: Mon, 14 May 2018 22:18:25 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [patch 12/15] Hidden 12 Message-ID: <20180514201825.GQ18407@pd.tnic> References: <20180513140048.543641807@linutronix.de> <20180513140539.223630033@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180513140539.223630033@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Sun, May 13, 2018 at 04:01:00PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch 12/15] x86/bugs: Remove x86_spec_ctrl_set() > From: Thomas Gleixner >=20 > x86_spec_ctrl_set() is only used in bugs.c and the extra mask checks there > provide no real value as both call sites can just write x86_spec_ctrl_base > to MSR_SPEC_CTRL. x86_spec_ctrl_base is valid and does not need any extra > masking or checking. >=20 > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/nospec-branch.h | 2 -- > arch/x86/kernel/cpu/bugs.c | 13 ++----------- > 2 files changed, 2 insertions(+), 13 deletions(-) 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