Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1112190ybl; Thu, 12 Dec 2019 09:48:29 -0800 (PST) X-Google-Smtp-Source: APXvYqziKmPYsCRD/ZzaG6qwutRkPPAVj0AqHvmCHxf0fTOFnz7V0yGvXhD7av4z7a/PVpYDgFdK X-Received: by 2002:aca:df07:: with SMTP id w7mr5945364oig.145.1576172909532; Thu, 12 Dec 2019 09:48:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576172909; cv=none; d=google.com; s=arc-20160816; b=E43UTjHWWW+aSh8mm1X2YAm77YjXlLVd7hWsSdGJ3XCPKJsIyCM4LAN8/dtvbQyr/5 r3y5wHKkVHQ+/ATmHpEyyEFn+tLoN2zZMrF9Nj/CNZnANfIeTxgAeltpUJa5aZk5uhHC 1Ir9ndIZc0gkoH6Xfqu/uzO4d4j77SoYNcOwngIWJbH4Okadx/OTYMapaIrNBiDV6AiE cYwy/V8sCwDFJuuJyK3K8oX7uZBAJ/fhfYVI31HGI9FqcfdTP6fP2dT0/kNjPCuJYcwQ Tl8appPeRDy5Us3zKvhRYkHCvS6Wi/BAsNCcXK3Yqc5TOR9yNkzEsaHNh9IR0b4jBNUq 1itQ== 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=/nKa20xp4tV0yE47Y8o9W3Vq936Vx8/IC/mznXJwZU4=; b=CI5C9DCeBGKycChTmg3LQdQQz39NU3VBhMvERog/y1c0UmLG+x4+0G+vpTao+71Kn/ hWv3WgDuRxg6ae3bHiHWAGQK+t6sazyHMHdhDDfhgUqNK/D/Yhi2Fi0bVMrLv+zE/9O/ 72VX7UBQbcgqnjnBL1IMV+NZzFJ/I1QPUq2CQ8K1kzBNUhZFow7JNaZL3WZhHhM+rt4j Z84stWHLGFC+AL9T5p6FTERF4Rhyr8rvAT9JHboY/OJzw+BiTC3xmzeaCcI5Ott/5OSp cCusF9ql/1iUJgxmG+AgYa4rBBYU8OEW78asZNZBgzVDlabQeiSsTLMwvgfU5Dn81nm8 H3Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PuBT64LF; 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 k138si3497195oih.175.2019.12.12.09.48.15; Thu, 12 Dec 2019 09:48:29 -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=PuBT64LF; 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 S1730245AbfLLRrk (ORCPT + 99 others); Thu, 12 Dec 2019 12:47:40 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:35149 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730200AbfLLRrj (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-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-220-CWV0yPFiOsCkhnHMIwhlJQ-1; Thu, 12 Dec 2019 12:47:36 -0500 X-MC-Unique: CWV0yPFiOsCkhnHMIwhlJQ-1 Received: by mail-wr1-f72.google.com with SMTP id j13so1301554wrr.20 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=OMfSD66pb//gblH4LwY12+f1LTZC3O9b9uZnIhublY7iOa29l6vSfOSzk5Bovkphz1 zG7lTnHLjcV49qGrwjdsc0zpZaYxqrigTj67AAvra7zjihHR1nX28kZtAc4kFs8UirR/ emq+800r3djNTwZQRQjwo3Nw5w7PGXHhiSB14/fnNuWHWCaGzBiX2W2O7OX3xdbihNev 09fB4RdAprnPMAT/GeYM1vrzSwxMC1Ct/iLjJ+XdEc/KOdPFf4RHoUFJWRiQKwoOTJtL DfPJoPKwC/mBwiiZMwgkJpw1o4NeVd/xpbkrqNmebzh4AoGgUwYstugvBga1PSt8rHfI JFyA== X-Gm-Message-State: APjAAAXvCSpqMCJ67GeL9fxI68oAnn1oDfnVYSZHRgn6t0HRptHXbmTQ /Qm8Z8j8AAgHc+EBBNnMOi5vKIykFao57QgME8DdhsUv12ombmxVBRRCtFSxNfoHe+3PzeiL6Jf iJqQCXRMwH4gvocLriH9HuU4L X-Received: by 2002:a5d:6b88:: with SMTP id n8mr7989957wrx.288.1576172855429; Thu, 12 Dec 2019 09:47:35 -0800 (PST) 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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