Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934702AbeAIR6M (ORCPT + 1 other); Tue, 9 Jan 2018 12:58:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54808 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934646AbeAIR6K (ORCPT ); Tue, 9 Jan 2018 12:58:10 -0500 Subject: Re: [PATCH v2 1/8] x86/feature: Detect the x86 IBRS feature to control Speculation To: Tim Chen , 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: Paolo Bonzini Message-ID: Date: Tue, 9 Jan 2018 18:58:04 +0100 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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 09 Jan 2018 17:58:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 09/01/2018 18:53, Tim Chen wrote: > 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. Were you also planning to include KVM patches in your patchset sooner or later? Or would that be a separate submission? (Either is fine; in the latter case, I assume I'll get a topic branch from the tip tree). >> + >> +#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. I think it makes sense for the patch that adds the CPU feature to also change msr-index.h. Paolo