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 D49F8C2D0C9 for ; Thu, 12 Dec 2019 17:47:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1B802067C for ; Thu, 12 Dec 2019 17:47:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d0O8zHHn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730224AbfLLRrj (ORCPT ); Thu, 12 Dec 2019 12:47:39 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:32554 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730177AbfLLRrj (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=1576172857; 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=d0O8zHHn0FxH+GaANDEjURR9FZHGTXtAkHo0dBPEsb3p8SlBmUNBWEw9k79ZTjZXK0LHLQ egWlMCn7tWjW1ZVNAzlqYMQTeNADHP6zIslri8VCTFj8aWn08Xcm4F2z65LIbod3PV0SSZ 14TyHt2+qJT4sQJY/cU/n+ez9ASee0Q= 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-169-Azfb48UHPtiP0Yp9jE_37A-1; Thu, 12 Dec 2019 12:47:36 -0500 X-MC-Unique: Azfb48UHPtiP0Yp9jE_37A-1 Received: by mail-wr1-f72.google.com with SMTP id k18so1316592wrw.9 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=r7uWs9dBVw48gbQhcQEwsw7xQsap+LI1LH9D6+ORRYni9q0WedBubD//f+mGg4UCTf t7VYntlxYCGZYf5jYA+44hTJDv2pOQ2eoOWgoKWmAiWVA6qWiMhlsxzH5mL69u8iOPwv 0TIdJmCFcRbLqfrbcCXGGslcfy0eMSCAJqi0T4Jw+yTktwG9udZAdTgla6YBHdnC6H2B hGm8xSWh80Sato9cG7A2S15szSK6goj7QX+7Xr6kiVuFQxo+HmcYjiYj5tECvVdThw/q mcWJpvYFjgvOzKkOeBknym4ChUL4NCLWumzwUp4jxyDeCb2CcryQZBwGUa2X44J9sgaH 0XFg== X-Gm-Message-State: APjAAAWblySzc6E31mqAXoHqQbCs49zTJD23wVUBK1ao6i/EZbRBJg9p 6E0pgqU3tk+UEgB7sLu3ag0OfkoKoxkihaZlpZJBNeHoZsYesmM7m0QRkp5LRZrHYVa6l7nBC4Y P05/hnPsEH7Vz X-Received: by 2002:a5d:6b88:: with SMTP id n8mr7989956wrx.288.1576172855429; 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: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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