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 9EDA6C00454 for ; Thu, 12 Dec 2019 17:47:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 787FF2067C for ; Thu, 12 Dec 2019 17:47:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PuBT64LF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730168AbfLLRro (ORCPT ); Thu, 12 Dec 2019 12:47:44 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:59181 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730215AbfLLRrj (ORCPT ); Thu, 12 Dec 2019 12:47:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576172858; 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=/nKa20xp4tV0yE47Y8o9W3Vq936Vx8/IC/mznXJwZU4=; b=PuBT64LF81qbxnp9yKPvc6facIfkMMVi6K+huyx8T8lwM234N9XCk3eAQaWA5LLIhbzKiM vJ0R403/vBRfebN5RAzE9ctIsk9Oh92PpMUY8rE9QvMEXprjuB4SkEQ73Hbi5aVzDPrkFR h6zWExyu3jpz/4Gc2XuKlXeD7QYZXko= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-115-nvfMBdwKPkOGrcDqf-1qYA-1; Thu, 12 Dec 2019 12:47:36 -0500 X-MC-Unique: nvfMBdwKPkOGrcDqf-1qYA-1 Received: by mail-wr1-f71.google.com with SMTP id h30so1314338wrh.5 for ; Thu, 12 Dec 2019 09:47:36 -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=/nKa20xp4tV0yE47Y8o9W3Vq936Vx8/IC/mznXJwZU4=; b=hDzPhJxG3QIWDvL1Ht7TjYtO7wCxFXsVatb56YMTdIj5+jsv7PbfSulgO7CLOtZxMQ xYUp64eCIqsaO+pGuwXpykpx1SYWrcagNjG01V0K75n2ZrIBie88pjAFLCR6m25a4kNX sM3ARNrtgXqjXbu+ct1breC48bHZWkScmLigWUpIqQ4HSDxDyLJF7YWZhq2Q5bVCvnuO qtd+0p6leorghE2c49iFLVYD0KnxSjssF5xaFOGzmZYUcgeoluBLMk+u6WLHO7153lWj 66WmKenUzpJaTfBLdVrzeBQQRzXuco47sxC1gqduxEB5lVJbyS22pTOYFMKTuBnmGRoF JBXw== X-Gm-Message-State: APjAAAWjob1yQ2A09v6VHDknpD1289TC5o4KCeR2FcISN5/LxpELaRvk KGF4KzAyRTYxSQfFTcyZLAvIpBaPLoPtw+sHB+j/nrApFpO0DpE6mP0LU7un7h1uCWOXQe4N+BS cuXIy1i3G15G4P3SIKmUKh+JYz1iU X-Received: by 2002:a5d:6b88:: with SMTP id n8mr7989944wrx.288.1576172855428; Thu, 12 Dec 2019 09:47:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzv2+I65Ibao5YAYxVeTp4kfGB0dGHdLw6/s3Qr+938uZEtANPwUxdA+sHWu8+QDpYFcjRJqg== X-Received: by 2002:a5d:6b88:: with SMTP id n8mr7989920wrx.288.1576172855163; Thu, 12 Dec 2019 09:47:35 -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 q3sm6813826wmj.38.2019.12.12.09.47.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2019 09:47:34 -0800 (PST) Subject: Re: [PATCH v4 11/19] x86/cpu: Print VMX flags in /proc/cpuinfo using VMX_FEATURES_* To: Sean Christopherson Cc: Liran Alon , Borislav Petkov , 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> <4A24DE75-4E68-4EC6-B3F3-4ACB0EE82BF0@oracle.com> <17c6569e-d0af-539c-6d63-f4c07367d8d1@redhat.com> <20191212174357.GE3163@linux.intel.com> From: Paolo Bonzini Message-ID: <52dd758d-a590-52a6-4248-22d6852b75cd@redhat.com> Date: Thu, 12 Dec 2019 18:47:32 +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: <20191212174357.GE3163@linux.intel.com> 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 18:43, Sean Christopherson wrote: > Key word being "usually". My intent in printing out partially redundant > flags was to help users debug/understand why the combined feature isn't > supported. E.g. userspace can already easily (relatively speaking) query > flexpriority support via /sys/module/kvm_intel/parameters/flexpriority. > But if that comes back "N", the user has no way to determine exactly why > flexpriority is disabled. There are tools such as vmxcap. It is part of QEMU, but I wouldn't mind moving it into the kernel tree. Paolo