Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp600939ybt; Wed, 8 Jul 2020 07:23:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiEyGnur5W9mDT7bqhp10laXGRn0h2wqV1fqF/l3Sxh5OX8n6LyebkBnyOjlHSYnjrV1Dl X-Received: by 2002:a17:906:add3:: with SMTP id lb19mr43554267ejb.304.1594218216558; Wed, 08 Jul 2020 07:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594218216; cv=none; d=google.com; s=arc-20160816; b=lOCnp1f5l1FdiMztX/kp4HiWQl24N/3Nzx22qZvvpJo+IfhY9upbDKBHXC1UDfivHi uj0QIrG/+BBxEaulCBvt+gjdMV4afxLvM4LzoMYKHRl4+KS1Mf4EXb8hOkKIsW+WbpS0 aXN45bdjx7+XOlvejcaOX+PFVZ2sQIugiLVCwf+uYKIrkVNFGrzVDdLGSHUQFShTz00R jR76dW0C6cps7TghaJldnxfYrG3grLEjnOuKof6NCNX+0TWAaeCOryUKXn1XObdDPvDZ o1knZL8/gDIy2PpykBQvZm6EMM6+NJBHynu2IJApsVV2PldeiXs+feyRtl92SD1w6xwh YGuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :ironport-sdr:ironport-sdr; bh=2AMkyeWAAs4aCMvRyKatb7JfHu237TdHS5CIVOi/Tzg=; b=w0gJAR1bx9E6s1CYRDZl44b5jTH1vF1OpL5MGgJUGkzjSn/on3wEpPXud+2GTBRH6A uz8AvfBrZsrjHoHb3M8vDa6QP4AZC2Wy41w9sJ55OJPNOEYrss6sqpODCpg3qBnZftvU 60SlLkZDLZKcartithkLvHsuXuAIpxqFPCW0ADV38LIXSLG/WHfFz+/eHK3ufzBZy99j SYqY0wGyeGKeqx2IJvLttd0AdjRv+xxnyRaofEEybHeRg1edN7x+BrCI39oblkHDAt/t aX6yme3jyRulPGI6iwPoRf3JzO4VCD/AUj/PhxNamA3hPGRglyyg0LBJ58f8S9rEzreP hNlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv19si4ejb.241.2020.07.08.07.23.13; Wed, 08 Jul 2020 07:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729732AbgGHOWi (ORCPT + 99 others); Wed, 8 Jul 2020 10:22:38 -0400 Received: from mga11.intel.com ([192.55.52.93]:49688 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729468AbgGHOWi (ORCPT ); Wed, 8 Jul 2020 10:22:38 -0400 IronPort-SDR: dCvA5WlVPBnTHtyexhzpKz9ZppxMClHr3vvCBWiVPVtkpRwDUwaCXiNo9WE/1nyasRqZTU4iCb EKhWoig0jCyw== X-IronPort-AV: E=McAfee;i="6000,8403,9675"; a="145903017" X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="145903017" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 07:22:37 -0700 IronPort-SDR: ypnSgETFnURfOh2lY/Di1FrVtyy0tX6IzKv3i1woeeu6NNiCW0dbri/bMNjUS49QgLV/4alj1Y Sab66rb+t1oA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="322949843" Received: from likexu-mobl1.ccr.corp.intel.com (HELO [10.255.31.237]) ([10.255.31.237]) by FMSMGA003.fm.intel.com with ESMTP; 08 Jul 2020 07:22:34 -0700 Reply-To: like.xu@intel.com Subject: Re: [PATCH] kvm: x86: limit the maximum number of vPMU fixed counters to 3 To: Paolo Bonzini , Like Xu , kvm@vger.kernel.org Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-kernel@vger.kernel.org References: <20200624015928.118614-1-like.xu@linux.intel.com> <8de3f450-7efd-96ab-fdf8-169b3327e5ac@intel.com> <9b50db05-759e-c95c-35b2-99fba50e6997@redhat.com> From: "Xu, Like" Organization: Intel OTC Message-ID: <3e849687-67f9-ac53-10ff-2b76d4881de4@intel.com> Date: Wed, 8 Jul 2020 22:22:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <9b50db05-759e-c95c-35b2-99fba50e6997@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/8 19:09, Paolo Bonzini wrote: > On 08/07/20 09:51, Xu, Like wrote: >> Kindly ping. >> >> I think we may need this patch, as we limit the maximum vPMU version to 2: >>     eax.split.version_id = min(cap.version, 2); > I don't think this is a problem. Are you planning to add support for > the fourth counter? Yes, we plan to provide this support on the KVM after fully enabling the fourth counter (and an accompanying special counter) on the host perf side. This may require one or two kernel cycles, so I have to prevent it from being exposed to non-linux guest with this fix. Thanks for your support. Thanks, Like Xu > > Paolo >