Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751601AbeAENvs (ORCPT + 1 other); Fri, 5 Jan 2018 08:51:48 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:44627 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbeAENvr (ORCPT ); Fri, 5 Jan 2018 08:51:47 -0500 Date: Fri, 5 Jan 2018 14:51:40 +0100 (CET) From: Thomas Gleixner To: Andrea Arcangeli cc: Tim Chen , Andy Lutomirski , Linus Torvalds , Greg KH , Dave Hansen , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] x86/feature: Detect the x86 feature to control Speculation In-Reply-To: <20180105134400.GC26807@redhat.com> Message-ID: References: <427aa76dea14532dea7e49f0bce4e7cf1dea7c6f.1515086770.git.tim.c.chen@linux.intel.com> <20180105134400.GC26807@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, 5 Jan 2018, Andrea Arcangeli wrote: > On Fri, Jan 05, 2018 at 02:09:43PM +0100, Thomas Gleixner wrote: > Now about the late microcode my preference is not for static_cpu_has > and forcing the early microcode, but my long term preference is to > start with this/boot_cpu_has() and then turn static_cpu_has in a true > static key so that setup_force_cpu_cap shall also flip the static key > for all static_cpu_has(X86_FEATURE_IBPB_SUPPORT) also if run any time > after boot and not only if run before the static_cpu_has alternative > is patched in. Fair enough. We can avoid the static_cpu_has() to begin with and fix it later. Thanks, tglx