Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757014AbeAIRxS (ORCPT + 1 other); Tue, 9 Jan 2018 12:53:18 -0500 Received: from mga01.intel.com ([192.55.52.88]:59442 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753080AbeAIRxQ (ORCPT ); Tue, 9 Jan 2018 12:53:16 -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="19607622" Subject: Re: [PATCH v2 1/8] x86/feature: Detect the x86 IBRS feature to control Speculation To: Paolo Bonzini , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH Cc: Dave Hansen , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , David Woodhouse , Borislav Petkov , linux-kernel@vger.kernel.org References: From: Tim Chen Message-ID: Date: Tue, 9 Jan 2018 09:53:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.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/09/2018 02:39 AM, Paolo Bonzini wrote: > + > +#define MSR_IA32_SPEC_CTRL 0x00000048 > +#define SPEC_CTRL_FEATURE_DISABLE_IBRS (0 << 0) > +#define SPEC_CTRL_FEATURE_ENABLE_IBRS (1 << 0) Boris requested that the name for ENABLE/DISABLE to be shortened to SPEC_CTRL_{ENABLE,DISABLE}_IBRS. I'm planning to do that for the next patchset update. > + > +#define MSR_IA32_PRED_CMD 0x00000049 > +#define PRED_CMD_IBPB (1UL << 0) > + The IBPB stuff should be enumerated separately. Feel free to create a separate patch for this chunk. Thanks. Tim