Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp360433ybm; Fri, 29 May 2020 01:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC7pV2Jg547nFGURlQfruNYZtymSMh/1bzSiYdA6ipPRi5ooKtB1gLsGvqzzKkV5t07dGr X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr6898707edp.146.1590742529914; Fri, 29 May 2020 01:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590742529; cv=none; d=google.com; s=arc-20160816; b=uG73V9xsXY8YzcyaKb94aAe2QdgdRmQDvnHIGfj4WJ8xdU3QnNSpK6Lgdtbfx3CajB WTOatRrUVPltCuXLA56M8mzaMlPKJqkiaDkLCtqvJC8NdAduG91PcvjGBk7hw3dqRJqR cHLZLPIKVRNm0U4sSAZjgbOldznDnxWV81HK+e+LPw6e9qIJ0hgxZrABJ/zW+lireqvH T+T2BZmNCct/LlG/Lgb49m4YTzoEH6JuPegCjP+wnN1fUFN7JBwvETCaA7D4OqEvKHGF 3HwqgssnbN2VySxvZboULAWBQf6sTonkhKKJ8N0SJQCrBfAYOnriwRumewde5ZYh9NRt aEEw== 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=5dCDqMGRUNAaNy0Iu+wAeWaDT7mogYnWT8WVLbh8uMc=; b=oFBQOsW4W2gfg4wZ0uq0K0QNkYhtLIc91yP500ZoYxtgfQulN/RCAyY9CtZWVG1YMw Dr+/IB12VPkgDPHdDXbyJW8QEV58AHoxRWyUGYtki3PB5ctZi5T3SXe30NOFRWVzp6J2 qDnpRetPwCfBYS9H2XVs8tXf8DpnORpI8HfxaiAlZltc3KVCIb28Ed3blNv2TU3cSmf2 37aRDN+itX6/no4yPMRqy+gCQpmTY8ZrMjmHjnmMTAyP6sJeZOHdjnPwxJamYA0PXu59 wsJQS3cahK7abvvA6w7LF8FW5PkSC05u9whmdOMhzrSqVWsORPd2CPVlhpkaun8DThkp 02RA== 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 u4si5431410edp.107.2020.05.29.01.55.06; Fri, 29 May 2020 01:55:29 -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 S1727053AbgE2Iwk (ORCPT + 99 others); Fri, 29 May 2020 04:52:40 -0400 Received: from mga07.intel.com ([134.134.136.100]:55753 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgE2Iwi (ORCPT ); Fri, 29 May 2020 04:52:38 -0400 IronPort-SDR: foGOxCxYA2FwGq9TNiDaOLGEVMwltI18G0NZPAUC0gEW4exxKT55tqm5iiWug/EZyBN+nBhfCx s1iAXRQonpzw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 01:52:37 -0700 IronPort-SDR: 9KFXrRfq7jvOdJ+Pa8JB5uZ41UtP3NO1E5ieKmGca4LGdurBRMFAqwI5NIoVgbDwpXZJW4t3wb A3/m4CbS1L3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,448,1583222400"; d="scan'208";a="311187339" Received: from likexu-mobl1.ccr.corp.intel.com (HELO [10.238.4.141]) ([10.238.4.141]) by FMSMGA003.fm.intel.com with ESMTP; 29 May 2020 01:52:33 -0700 Reply-To: like.xu@intel.com Subject: Re: [PATCH RESEND] Enable full width counting for KVM: x86/pmu To: Paolo Bonzini , Like Xu Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200529074347.124619-1-like.xu@linux.intel.com> <8ff77a5b-21fd-31f0-b97c-d188ec776808@redhat.com> From: "Xu, Like" Organization: Intel OTC Message-ID: <800997eb-91f9-efb4-34f5-44e130e720ab@intel.com> Date: Fri, 29 May 2020 16:52:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <8ff77a5b-21fd-31f0-b97c-d188ec776808@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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/5/29 16:47, Paolo Bonzini wrote: > On 29/05/20 09:43, Like Xu wrote: >> Hi Paolo, >> >> As you said, you will queue the v3 of KVM patch, but it looks like we >> are missing that part at the top of the kvm/queue tree. >> >> For your convenience, let me resend v4 so that we can upstream this >> feature in the next merged window. Also this patch series includes >> patches for qemu and kvm-unit-tests. Please help review. >> >> Previous: >> https://lore.kernel.org/kvm/f1c77c79-7ff8-c5f3-e011-9874a4336217@redhat.com/ >> >> Like Xu (1): >> KVM: x86/pmu: Support full width counting >> [kvm-unit-tests] x86: pmu: Test full-width counter writes >> [Qemu-devel] target/i386: define a new MSR based feature >> word - FEAT_PERF_CAPABILITIES >> >> Wei Wang (1): >> KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in >> >> arch/x86/include/asm/kvm_host.h | 1 + >> arch/x86/kvm/cpuid.c | 2 +- >> arch/x86/kvm/pmu.c | 4 +- >> arch/x86/kvm/pmu.h | 4 +- >> arch/x86/kvm/svm/pmu.c | 7 ++-- >> arch/x86/kvm/vmx/capabilities.h | 11 +++++ >> arch/x86/kvm/vmx/pmu_intel.c | 71 +++++++++++++++++++++++++++------ >> arch/x86/kvm/vmx/vmx.c | 3 ++ >> arch/x86/kvm/x86.c | 6 ++- >> 9 files changed, 87 insertions(+), 22 deletions(-) >> > Thanks, I was busy with AMD stuff as you saw. :) I've queued it now. Yes, we all know you're busy. I will be very grateful if you could comment the KVM part for the LBR feature. :D https://lore.kernel.org/kvm/20200514083054.62538-1-like.xu@linux.intel.com/ Thanks, Like Xu > > Paolo >