Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3811803ybc; Thu, 21 Nov 2019 14:14:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzPRAn5vkAi6bDW3gCaXnxe8B1nDtAd0U5CpZ4poDX8S7FBCSvzOCO+NvcmWe3sIdKavrjF X-Received: by 2002:a17:906:230f:: with SMTP id l15mr16568893eja.222.1574374486923; Thu, 21 Nov 2019 14:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574374486; cv=none; d=google.com; s=arc-20160816; b=uYeeNvQQrVIukaLGrTXgsq/54r52W4nzTB6BYAcph10FMMMck9lt02Ib4nkciG4yCS n2fhdnEPQPqzyFOmaH3czQiBCinqdm+QdkPPxjeTlnhtUu0RlWJQgKqhkN2HaNKosOy4 4L8y02Nwy+xFa0RhCqi1X6n2/PXtqvITq6fcivXVyMltPLgZZi+94heGjY2uXgAuAdml cZ2bSV8k1uACsOciIIZ+jp45Lqt4mRr/StLiQeh26L8hfQMG1qGKpAg28L3WM9oFc8le pCGV1CEHRPiWbd/wCEdQoC0eSSIo4guQepUb9B+q7i8I1vItUKY5WOB/OC6f7I9mjOnK Etwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rzVzk+jolkFyG0VJmpMcgTTBnbN3oB0aReB0NPhZTN4=; b=xHLsrGgqwm8dqUKkp4a2xGo40l7iANYptY3xSQpDjw1GaftWDMzj7dLqKJL8xe69ry crirktiPSQgRA19VYYPtYZ7TN4AbmbsQmTtUt7BnHGdy2FwmkUCw4ByZYqvQAONcBWb3 DvXmIA++wugbgtPwk652gHDzVG0ffZUzZxX83Pd8tE4hn/EZEyZtZ0iaN60l2/bRbwm4 zgyoV4qQcv+2caR5TeuiAcQZMH/6aTtunJMDTclGdX3GA5NPk3DCoo9cusE88ezPkep/ W5WwCruTRhDi7eQxBYxPlQttGXnvvFW7bWZVMv76GNDnrIe7ctXvVAbCCkP/kB8BET5U gmlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca22si2824390ejb.22.2019.11.21.14.14.22; Thu, 21 Nov 2019 14:14:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbfKUWMg (ORCPT + 99 others); Thu, 21 Nov 2019 17:12:36 -0500 Received: from mga03.intel.com ([134.134.136.65]:47756 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfKUWMg (ORCPT ); Thu, 21 Nov 2019 17:12:36 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 14:12:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,227,1571727600"; d="scan'208";a="205292088" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.41]) by fmsmga007.fm.intel.com with ESMTP; 21 Nov 2019 14:12:34 -0800 Date: Thu, 21 Nov 2019 14:12:34 -0800 From: Sean Christopherson To: Borislav Petkov Cc: Jarkko Sakkinen , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Tony Luck , Tony W Wang-oc , Shuah Khan , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-edac@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 04/19] x86/intel: Initialize IA32_FEATURE_CONTROL MSR at boot Message-ID: <20191121221234.GE16617@linux.intel.com> References: <20191119031240.7779-1-sean.j.christopherson@intel.com> <20191119031240.7779-5-sean.j.christopherson@intel.com> <20191121103925.GB20907@linux.intel.com> <20191121104145.GC20907@linux.intel.com> <20191121110533.GD6540@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191121110533.GD6540@zn.tnic> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 12:05:33PM +0100, Borislav Petkov wrote: > On Thu, Nov 21, 2019 at 12:41:45PM +0200, Jarkko Sakkinen wrote: > > On Thu, Nov 21, 2019 at 12:39:25PM +0200, Jarkko Sakkinen wrote: > > > > +void init_feature_control_msr(struct cpuinfo_x86 *c) > > > > I'd also use here shorter init_feat_ctl_msr(). It has one call site > > but shorter name is more convenient when playing with tracing tools. > > Yeah, and since we're shortening all to feat_ctl, let's do: > > mv arch/x86/kernel/cpu/feature_control.c arch/x86/kernel/cpu/feat_ctl.c Any objection to keeping the MSR name as MSR_IA32_FEATURE_CONTOL? I'd like to have some anchor back to the name used in the SDM. Any opinions/thoughts on the name of the Kconfig? Currently it's X86_FEATURE_CONTROL_MSR, which gets a bit long with CONFIG_ on the front. I also overlooked that we have MSR_MISC_FEATURE_CONTROL, so having IA32 in the Kconfig would probably be a good idea. X86_IA32 is rather redundant, so maybe IA32_FEAT_CTL or IA32_FEATURE_CONTROL?