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 1fIJgC-0003UY-C9 for speck@linutronix.de; Mon, 14 May 2018 22:02:44 +0200 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 238C1AF56 for ; Mon, 14 May 2018 20:02:39 +0000 (UTC) Date: Mon, 14 May 2018 22:02:25 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [patch 11/15] Hidden 11 Message-ID: <20180514200225.GP18407@pd.tnic> References: <20180513140048.543641807@linutronix.de> <20180513140539.142157021@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180513140539.142157021@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:00:59PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch 11/15] x86/bugs: Expose x86_spec_ctrl_base directly > From: Thomas Gleixner >=20 > x86_spec_ctrl_base is the system wide default value for MSR_SPEC_CTRL. > x86_spec_ctrl_get_default() returns x86_spec_ctrl_base and was intended to > prevent modification to that variable. Though the variable is read only > after init and globaly visible already. >=20 > Remove the function and export the variable instead. >=20 > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/nospec-branch.h | 16 +++++----------- > arch/x86/include/asm/spec-ctrl.h | 3 --- > arch/x86/kernel/cpu/bugs.c | 13 ++----------- > 3 files changed, 7 insertions(+), 25 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