From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933107AbeAJBvy (ORCPT + 1 other); Tue, 9 Jan 2018 20:51:54 -0500 Received: from mga07.intel.com ([134.134.136.100]:46821 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932428AbeAJBvw (ORCPT ); Tue, 9 Jan 2018 20:51:52 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,337,1511856000"; d="scan'208";a="8586155" Subject: Re: [patch RFC 3/5] x86/spectre: Prepare for IBRS selection To: Thomas Gleixner , LKML References: <20180110010652.404145126@linutronix.de> <20180110011350.662199342@linutronix.de> Cc: Linus Torvalds , x86@kernel.org, Peter Zijlstra , Borislav Petkov , David Woodhouse , Tim Chen , Andrea Arcangeli , Andi Kleen , Greg KH , Andy Lutomirski , Arjan Van De Ven From: Dave Hansen Message-ID: Date: Tue, 9 Jan 2018 17:51:50 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180110011350.662199342@linutronix.de> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/09/2018 05:06 PM, Thomas Gleixner wrote: ... > + case SPECTRE_V2_CMD_RETPOLINE: > + if (IS_ENABLED(CONFIG_RETPOLINE)) > + goto retpoline_auto; > + break; > + } > + pr_err("kernel not compiled with retpoline; no mitigation available!"); > + return; > + > +retpoline_auto: > + /* > + * Note: This only takes effect during boot before alternatives > + * have been patched. Later invocations after late micro code > + * update wont change the boot selection even if IBRS has not been > + * made available by the microcode loading. > + */ > if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { > retpoline_amd: Should the "IBRS has not been" be "IBRS has been"?