Return-path: Received: from userp2120.oracle.com ([156.151.31.85]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fJ7z7-0007Au-44 for speck@linutronix.de; Thu, 17 May 2018 03:45:37 +0200 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4H1eqmu097209 for ; Thu, 17 May 2018 01:45:30 GMT Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2hx29w7701-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 May 2018 01:45:30 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4H1jTAS024806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 May 2018 01:45:29 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4H1jT3b032330 for ; Thu, 17 May 2018 01:45:29 GMT Date: Wed, 16 May 2018 21:45:28 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch 11/15] SSB updates V17 11 Message-ID: <20180517014528.GI10272@char.us.oracle.com> References: <20180516135132.687640705@linutronix.de> <20180516135210.228793873@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180516135210.228793873@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, May 16, 2018 at 03:51:43PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch 11/15] x86/bugs: Expose x86_spec_ctrl_base directly > From: Thomas Gleixner > > x86_spec_ctrl_base is the system wide default value for MSR_SPEC_CTRL. s/MSR_SPEC_CTRL/SPEC_CTRL MSR/? > 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. > > Remove the function and export the variable instead. > > Signed-off-by: Thomas Gleixner > Reviewed-by: Borislav Petkov > --- > V2: Removed the hunk which inverted x86_spec_ctrl_mask > --- > arch/x86/include/asm/nospec-branch.h | 16 +++++----------- > arch/x86/include/asm/spec-ctrl.h | 3 --- > arch/x86/kernel/cpu/bugs.c | 11 +---------- > 3 files changed, 6 insertions(+), 24 deletions(-) Reviewed-by: Konrad Rzeszutek Wilk Thank you!