Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753733AbeAFDMP (ORCPT + 1 other); Fri, 5 Jan 2018 22:12:15 -0500 Received: from mga01.intel.com ([192.55.52.88]:62222 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbeAFDMO (ORCPT ); Fri, 5 Jan 2018 22:12:14 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,320,1511856000"; d="scan'208";a="19413979" Subject: Re: [PATCH v2 4/8] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature To: Tim Chen , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH References: Cc: Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , David Woodhouse , linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: Date: Fri, 5 Jan 2018 19:12:12 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/05/2018 06:12 PM, Tim Chen wrote: > .macro ENABLE_IBRS > - ALTERNATIVE "jmp .Lskip_\@", "", X86_FEATURE_SPEC_CTRL > + testl $1, dynamic_ibrs > + jz .Lskip_\@ There was an earlier suggestion to use STATIC_JUMP_IF_... here. That's a good suggestion, but we encountered some issues with it either crashing the kernel at boot or not properly turning on/off. We would love to do that minor really soon, but we figured everyone would rather see this version than wait for us to debug such a minor tweak.