From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35C87C43603 for ; Thu, 12 Dec 2019 14:13:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 041C9214AF for ; Thu, 12 Dec 2019 14:13:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aIqcQsQX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729652AbfLLONv (ORCPT ); Thu, 12 Dec 2019 09:13:51 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:32756 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729637AbfLLONv (ORCPT ); Thu, 12 Dec 2019 09:13:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576160031; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ZExjJXZmAxrisVlHnSSzmAF44okPSODnrWMGgB8ZBE=; b=aIqcQsQXNrc8tYiriXSHQ1CbdhuKI8HlTnqvaMlqbOIjrBauLTjC+ySlulhogYTZ6KsOFU pgThq5RA7DydALkyWOVHc3YETtY/Yxzvzc3Oa6wcl9Y+mozyQ3Thk2wR4txvwLS/GtfA7b seZVWJXXOTiTrKj0UHepLmNxgeB9njU= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-O0b_wQ7ZPHKKOjU6UGmMfg-1; Thu, 12 Dec 2019 09:13:49 -0500 X-MC-Unique: O0b_wQ7ZPHKKOjU6UGmMfg-1 Received: by mail-wm1-f72.google.com with SMTP id m133so646389wmf.2 for ; Thu, 12 Dec 2019 06:13:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+ZExjJXZmAxrisVlHnSSzmAF44okPSODnrWMGgB8ZBE=; b=hWQyoXbrJeM55q+1K47jaINn+IP8qpMBGvTcLUSK7/i22EoTE985o1HL0AjNqlsvz3 Nmaj55f5PgEsFNdWU/2eovYHArqLGBxaUr+fFmc9o+qCihxOdLpc5eyiwyiyPhRQiJ+B hptvEVllh3YkQAfOr4urnKhxHtITvdu1hWssy1cZJyC0ANRwv2YhryAdmtdBnm1IeP1w yiGce7dzRPBSL0BTqxMv17Q/nuqa24CszemJxfafxuHzfgZsFIONtkRq3zk7CuHD3nQL KO2d6eLGUm/z2URXPU/zobaiij8xwv0snZdhzqQ47A1DGMzBw/9U6DVZSHl5G0kTDYF6 0x1Q== X-Gm-Message-State: APjAAAVK8HlUiZOsQrj6LidUmFIObipIbFKsB2OC8doWZjIpk0LcBRGw Yv7/3BHgWks8XkwGo/3L7RSJ09vJmCcvSKgVZ7Yh1ysvw23IM08B/1/U/u825PK4ob2bOfXZRdc /hiE9GWmTSLRcVGKILpLGYb5uoTbo X-Received: by 2002:a1c:1d16:: with SMTP id d22mr7146080wmd.158.1576160028584; Thu, 12 Dec 2019 06:13:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzXF4yU0mb+JGHuD4jVpmfrMhrWl7mkfC0/B+dcZzKjBOfKW3ZFj8XtTi3XukYIj/A/1colAQ== X-Received: by 2002:a1c:1d16:: with SMTP id d22mr7146033wmd.158.1576160028358; Thu, 12 Dec 2019 06:13:48 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:e9bb:92e9:fcc3:7ba9? ([2001:b07:6468:f312:e9bb:92e9:fcc3:7ba9]) by smtp.gmail.com with ESMTPSA id v3sm6151298wml.47.2019.12.12.06.13.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2019 06:13:47 -0800 (PST) Subject: Re: [PATCH v4 11/19] x86/cpu: Print VMX flags in /proc/cpuinfo using VMX_FEATURES_* To: Borislav Petkov , Sean Christopherson Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Tony Luck , Tony W Wang-oc , Len Brown , Shuah Khan , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-edac@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, Jarkko Sakkinen References: <20191128014016.4389-1-sean.j.christopherson@intel.com> <20191128014016.4389-12-sean.j.christopherson@intel.com> <20191212122646.GE4991@zn.tnic> From: Paolo Bonzini Message-ID: Date: Thu, 12 Dec 2019 15:13:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191212122646.GE4991@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 12/12/19 13:26, Borislav Petkov wrote: > > vmx flags : virtual_nmis preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offsetting virtual_tpr mtf virt_apic_accesses ept vpid unrestricted_guest ple shadow_vmcs pml mode_based_ept_exec > > virtual_nmis -> vnmis Even vnmi > preemption_timer -> preempt_tmr I would prefer the full one here. > flexpriority -> flexprio Full name? > tsc_offsetting -> tsc_ofs tsc_offset? > virtual_tpr -> vtpr Do we need this? It's usually included together with flexpriority. > virt_apic_accesses -> vapic apicv > unrestricted_guest -> unres_guest Full? Or just unrestricted In general I would stick to the same names as kvm_intel module parameters (sans "enable_" if applicable) and not even bother publishing the others. Some features are either not used by KVM or available on all VMX processors. Paolo > and so on. Those are just my examples - I betcha the SDM is more > creative here with abbreviations. But you guys are going to grep for > them. If it were me, I'd save on typing. :-)