From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935189AbcATLFu (ORCPT ); Wed, 20 Jan 2016 06:05:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:34914 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934160AbcATLFs (ORCPT ); Wed, 20 Jan 2016 06:05:48 -0500 Date: Wed, 20 Jan 2016 12:05:19 +0100 From: Borislav Petkov To: "H. Peter Anvin" Cc: Brian Gerst , the arch/x86 maintainers , Linux Kernel Mailing List , Ingo Molnar , Denys Vlasenko , Andy Lutomirski , Linus Torvalds Subject: Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init Message-ID: <20160120110519.GC23350@pd.tnic> References: <20160118181457.GG12651@pd.tnic> <20160118185107.GI12651@pd.tnic> <20160119011026.GA12911@pd.tnic> <20160119092213.GA15071@pd.tnic> <569F06B9.4060903@zytor.com> <569F1022.6040709@zytor.com> <20160120105018.GB23350@pd.tnic> <96EC3B78-0E65-4464-B7F7-B0F9D2CCEF19@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <96EC3B78-0E65-4464-B7F7-B0F9D2CCEF19@zytor.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2016 at 02:55:24AM -0800, H. Peter Anvin wrote: > How about: > > section for code used exclusively before alternatives are run. All references to such code must be patched out by alternatives, normally by using a patch with X86_FEATURE_ALWAYS. > > See static_cpu_has() for an example. Sure. My thinking was to make it a bit more generic so that if we decide to do some different monkey business with the alternatives, to put stuff in there too. But we can always change that later - it's not like it is user-visible. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --