Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp141127pja; Fri, 22 Nov 2019 04:36:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxOS4IY/iP6E8urby4FoXuf2wdeRAH5IaRCQ+65m0ZberMKqfz1e5Q6n81XmVKvQnILozg4 X-Received: by 2002:aa7:c518:: with SMTP id o24mr758760edq.110.1574426180183; Fri, 22 Nov 2019 04:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574426180; cv=none; d=google.com; s=arc-20160816; b=W5kA1pOgW5hkezRvCI2aBFmfh5HZHeP1JBCVIw1PypMmrxZNljlVOeNbTg87xzSQGu fQZWppkIGh5JAqsgshyllW4HbSacqGhOgwhA2hO4LAZk7mn6qhl4Qr1kAcNg60oKbubb WdXF7FJQ7BURLmIQ8I0GMYXDYWRvAklYaM0OSYVSoulqVJudPL03CNtW51QoWxvQLMtV FjqYPejLmrWNQueojL2bbDRBkPaP01H9BVliI9yj614VbqVI/FAPPCFRVwrezFp0jsEl NIS9Nxqmy5PW8eR6ytNyi716e6nGQaLLjEj9+/t2M9eajyN+dbPgIkfGS2wEUPae4O9F xpAg== 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:dkim-signature; bh=dij5MNPx/IwHCLqmKnuYF4M7pmGAodazP5F2XXl3Cs8=; b=jFSHYqRMBeFNfTssHwAQnWWvN1F+C3B5hr/xK7yxksnMfpBKl4XysyfmotfOcOgo8e gLoXQz1dqT5Tggc4mR2/TtQXqzY14lSK8zAF8Ic/tTP3tfl9iwRf90tDtVLgwxqA2BM6 Ysl5oDVaZdDP4RAqZ9yllBdLvtm2eg8IVe6uvsm7ZVhXD9LieYDTtMxI7CnmuRr/yB+y ZNgoNQ0McVdd/cFbHf2tYiJ6K4Eig7fNK0yY2IuRQMt3n4Ufbf5WXxuto6H5pcTLdInU bcRtxod3+nW20XQvEusLLIScUBYqUxh/ao7vMOZSHdp+OqTTX6y4wX1+CQddI+nIqefa 7+Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=XGeQmD4U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c36si1156551edb.58.2019.11.22.04.35.56; Fri, 22 Nov 2019 04:36:20 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=XGeQmD4U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727588AbfKVMet (ORCPT + 99 others); Fri, 22 Nov 2019 07:34:49 -0500 Received: from mail.skyhub.de ([5.9.137.197]:45752 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfKVMes (ORCPT ); Fri, 22 Nov 2019 07:34:48 -0500 Received: from zn.tnic (p200300EC2F0E9700A4FB1BDEE3C09F73.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:9700:a4fb:1bde:e3c0:9f73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D2DD01EC0D07; Fri, 22 Nov 2019 13:34:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1574426087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=dij5MNPx/IwHCLqmKnuYF4M7pmGAodazP5F2XXl3Cs8=; b=XGeQmD4UYTJDu20ffLIR31lLxhKYQGLyFnCyFmhO65BmnOS8AQpTG2pF6I6ftZbm5sUj+p L+C+VxtDHyXeUZhM1Hzp2OTMT8xd9gZ1Cd/fihs3BuPUt73v76ydlnIBy1LZ5UZDdBYXw9 KmqHHh11jj2sDKm7WTl8uMy/ui/YgGM= Date: Fri, 22 Nov 2019 13:34:40 +0100 From: Borislav Petkov To: Sean Christopherson 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: <20191122123433.GH6289@zn.tnic> 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> <20191121221234.GE16617@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191121221234.GE16617@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 02:12:34PM -0800, Sean Christopherson wrote: > 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? Well, what I'd do is since we have MSR_MISC_FEATURE_CONTROL too, I'd call all code and defines pertaining to the 0x3a MSR _IA32_FEAT_CTL I.e., CONFIG_IA32_FEAT_CTL, MSR_IA32_FEAT_CTL, ... and leave a comment over the MSR definition containing the SDM name. This way, you have a clear distinction between the IA32 and the MISC feature control. But this is just me and I realize we're pretty much deep inside the bike shed. :) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette