From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932691AbeAJBoH (ORCPT + 1 other); Tue, 9 Jan 2018 20:44:07 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:54003 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932412AbeAJBoG (ORCPT ); Tue, 9 Jan 2018 20:44:06 -0500 Date: Wed, 10 Jan 2018 02:44:02 +0100 (CET) From: Thomas Gleixner To: Dave Hansen cc: LKML , 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 , Borislav Petkov , "Raj, Ashok" Subject: Re: [patch RFC 1/5] x86/CPU: Sync CPU feature flags late In-Reply-To: Message-ID: References: <20180110010652.404145126@linutronix.de> <20180110011350.501418723@linutronix.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, 9 Jan 2018, Dave Hansen wrote: > On 01/09/2018 05:06 PM, Thomas Gleixner wrote: > > This is for the case where we need to set feature flags late, like, for > > example, after late microcode patch has been loaded which has enabled > > new CPUID bits. > > > > This has no effect on alternatives patching. > > In other words, if you use late microcode loading for getting IBRS, you > don't get ALTERNATIVE patching and its benefits? > > I'll also profess some microcode ignorance here. Is "late microcode > patching" *all* of the stuff we do from the OS, or do we have early and > late Linux loading in addition to what the BIOS can do? IBRS wont use alternatives for that and various other reasons. It has to be static key based so we can patch it late Thanks, tglx