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 75C86C2D0C9 for ; Thu, 12 Dec 2019 14:13:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C7DD2173E for ; Thu, 12 Dec 2019 14:13:53 +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 S1729687AbfLLONw (ORCPT ); Thu, 12 Dec 2019 09:13:52 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:44393 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729650AbfLLONv (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-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-97-wuAdAh3jMCytffIMVkp2zg-1; Thu, 12 Dec 2019 09:13:50 -0500 X-MC-Unique: wuAdAh3jMCytffIMVkp2zg-1 Received: by mail-wr1-f72.google.com with SMTP id f17so1075432wrt.19 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=NC2x+Uv8HzfG/IB/utCtNMwHdQIh8OKQ6Jgc+GS5n/4p0reZS39VbwxWU30TLWKsvD O9XC55f2y5r1/4G2Bu4xxkIPnGerWNgT09UgBzN+UkXhEIZj0YEDkVVSyV3zRfjKgFd/ JXGzrDd8VERaSli+pEWl77HGM7prNbCjCMslH63lImoiiQcNLfL7N9nN38wNpF5GO5Fs YGmnlYjAaDtXy+ljpiHD9nOgs1XWr0b20JcSFTtQGiedMlNi0KvZH16Xu2iNCEHlrwC/ qjj0ljNLEU2Qy3khKLiNU9lgs0fMhnRx8yahc5UlUhUyO/fP7Z7PdnBBaN6kxqb5Ruf2 zZtQ== X-Gm-Message-State: APjAAAWBGtggG7T62uGZ9PDQkD50U+J1zucpkikEyogz8wx/qVllvbok OJ5TVt0t7Mq5lnP3SHQw4msYckiLGT60CU+W9EzZtlNS7dnYLQuNR9qYH4Er5Bsl/Q3jcOrHR5C Usr7UP3tiJjwe7h2XbJJqtXAj X-Received: by 2002:a1c:1d16:: with SMTP id d22mr7146061wmd.158.1576160028582; 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. :-)