From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934116AbcATOsv (ORCPT ); Wed, 20 Jan 2016 09:48:51 -0500 Received: from terminus.zytor.com ([198.137.202.10]:35571 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932744AbcATOst (ORCPT ); Wed, 20 Jan 2016 09:48:49 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <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> <20160120110519.GC23350@pd.tnic> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init From: "H. Peter Anvin" Date: Wed, 20 Jan 2016 06:48:30 -0800 To: Borislav Petkov CC: Brian Gerst , the arch/x86 maintainers , Linux Kernel Mailing List , Ingo Molnar , Denys Vlasenko , Andy Lutomirski , Linus Torvalds Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On January 20, 2016 3:05:19 AM PST, Borislav Petkov wrote: >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. I don't think the verbiage I suggested in any way disagrees with that notion. -- Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.