Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754735AbeAHRmd (ORCPT + 1 other); Mon, 8 Jan 2018 12:42:33 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:54417 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753848AbeAHRmb (ORCPT ); Mon, 8 Jan 2018 12:42:31 -0500 Date: Mon, 8 Jan 2018 18:42:24 +0100 From: Peter Zijlstra To: Tim Chen Cc: Dave Hansen , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , David Woodhouse , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/8] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature Message-ID: <20180108174224.GE6176@hirez.programming.kicks-ass.net> References: <20180108124707.GH32035@hirez.programming.kicks-ass.net> <20180108161437.GN32035@hirez.programming.kicks-ass.net> <46157295-e32e-5c9e-0c8b-f91b34f7b02d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46157295-e32e-5c9e-0c8b-f91b34f7b02d@linux.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 08, 2018 at 09:28:12AM -0800, Tim Chen wrote: > On 01/08/2018 08:14 AM, Peter Zijlstra wrote: > > On Mon, Jan 08, 2018 at 01:47:07PM +0100, Peter Zijlstra wrote: > >>> a good suggestion, but we encountered some issues with it either > >>> crashing the kernel at boot or not properly turning on/off. > > > > The below boots, but I lack stuff to test the enabling. > > Peter, > > Thanks. Will give it a spin. One other concern is if > JUMP_LABEL is not configured, this may not work, and > we may still need fall back to a control variable. Urgh yes.. I always forget about that case. Will the retpoline crud be backported to a GCC old enough to not have asm-goto? If not, we could make all of this simply require asm-goto.