Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757884AbeAISN1 (ORCPT + 1 other); Tue, 9 Jan 2018 13:13:27 -0500 Received: from mga09.intel.com ([134.134.136.24]:18066 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022AbeAISN0 (ORCPT ); Tue, 9 Jan 2018 13:13:26 -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,336,1511856000"; d="scan'208";a="9084660" Subject: Re: [PATCH v2 1/8] x86/feature: Detect the x86 IBRS feature to control Speculation To: Borislav Petkov , Tim Chen References: <20180106125633.wu3j4xz7f6w67b3f@pd.tnic> Cc: Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , David Woodhouse , linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: Date: Tue, 9 Jan 2018 10:13:23 -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: <20180106125633.wu3j4xz7f6w67b3f@pd.tnic> 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/06/2018 04:56 AM, Borislav Petkov wrote: >> +#define MSR_IA32_SPEC_CTRL 0x00000048 >> +#define SPEC_CTRL_FEATURE_DISABLE_IBRS (0 << 0) >> +#define SPEC_CTRL_FEATURE_ENABLE_IBRS (1 << 0) > s/_FEATURE// > > SPEC_CTRL_{ENABLE,DISABLE}_IBRS is good enough. FWIW, I like the idea of including "SPEC_CTRL_" because it matches the constant to the MSR name. But I don't care that much.