Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp869830ybl; Thu, 12 Dec 2019 06:15:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxcC5m5HRrrapYHa+MgZc+eDFdx208ZdlcZp7Xhkcf7EX1UJHgh4O3nGCS1pzU6PyBjaiOp X-Received: by 2002:aca:f487:: with SMTP id s129mr5203400oih.154.1576160099911; Thu, 12 Dec 2019 06:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576160099; cv=none; d=google.com; s=arc-20160816; b=XHsvbw/yiRzZWyIbNRQVI4stS4KN65rRkbYtYNO79UuyzEwihNOPNyNpSCrL+CsVY1 gG5BzZmNWbaS+fCj+hL7VMztzchV7DxFwu8M5kwXFT6v2txVJk0/Uv0Ir9ds+g6/zGqF vL1BqTOaLbqUz7t8uQZRI+dnTGnrVyBEuwjHJE8IhslpmzoXmMrtUp99D2NEsCb2RHIt 1Om2hIKYK4D4t/l4wrENcPXCgBP4Lg0bg1me2B0eNlvaHxi2QDDHc6/1AuvtuUlDFBDM FQ3L+btofO0UwCSJgZhyLUpP3pD6o3m35nqKZC3qvCbyqHlcdFm0uNLyV0p8ziS62w1Z BWEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+ZExjJXZmAxrisVlHnSSzmAF44okPSODnrWMGgB8ZBE=; b=MBeczEDiuj8Io2RvB/YGNQopT7hZCBzY0cr7GiWwcMCH5sY+DjNWL4QykWbLdSNOan 6bid2et9OZrEFIqLLbykywGvKG6qCSR97YVN3kLCCr/vSIqN1UKKcRufNbv/Zn6IAjBm /KFmG5RVJOhHmhTbyz9g8dTFZ3pondcMnhPQLbIAWFN09sxi4bbhHBEfMj3aCDI3MAqQ Kao3NotSYEW+v/vtmggriBGpFOs/xQU8+E0OaaoBZdQknWdiTCxL8b2Ia/xQcWk/uvr9 t5/vFVhVYdZooIROShafznk+rQazOqrma1cj431ClroO+ZM7TxyNWKf0DghMGdroV8u2 SKAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aIqcQsQX; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si3084508oiw.238.2019.12.12.06.14.45; Thu, 12 Dec 2019 06:14:59 -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=@redhat.com header.s=mimecast20190719 header.b=aIqcQsQX; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729560AbfLLONw (ORCPT + 99 others); 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-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. :-)