Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp325420ybm; Fri, 29 May 2020 00:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8GVdSARlNBv8NX7POeNidZJCMjE6TB5sNANs9T8qljqU4PQ5SnU8TbOOTgVPdPq2Cjik+ X-Received: by 2002:a17:906:1dc9:: with SMTP id v9mr6708248ejh.252.1590738507443; Fri, 29 May 2020 00:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590738507; cv=none; d=google.com; s=arc-20160816; b=BX8XHHHe6lz+nLxNh8kNOtb89xGKY3Bhvp7bSIemabxgGae9Bd3cJhrvesN7HFFyWt DRRsDF5ZjEc/nuMIfJI0d33vS9/jPpsD/AkViChQxFkVKBXAHHYQPRnLi/b3zF1q6ZdL t9WIk93vY+or3Gwk41908DSmOpelZ/IaHpxc9tFRKjFL3kPkf06wg83MfhqMEbzrZi7L T0miPYOD/1nAOgq/tMudY0LFNxFH6Pd1ZLNbkQdIeXqOy51cNWL6z69fxv5++E9sZ3bS UgNmhT+9RO9jEnBC1AeLOIGTiF4ir1UdDibSTHkGrQm+LRijJJaiG8NngZuxLGULxz76 xmIg== 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:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=gtJdjiYQixsGfmRO8YNQeWapZ+oyJB2zmDeukOzIBjQ=; b=DAZLOOj3DRtXv3G6kychoHGmdg/MtP+HK09Qo2wmqMJkP7EqdkQt4X9pHbWVgWEQ/S JM8W7GyiHTzYdEufmRu1Puvh8sIJLKfteih3WmfNZuhkCFBFd1B5lvCGt+Rz1hDGVqLJ GkuW4A7Rf/J59K31K+ILjZdeHEaLLfqXjrPSWK2O/zygO3yRk60J7w0NP7nCbNhuzMB4 Pa+kP0kKS32c1aa1S/pgzMzDd+l6tGiefMHxaaVQXISapvU346F6dFobGeAahUIZruKb xN89LwkUK8KRs5KwynHeJGVyfCB8czHsZvDN1TcpsgvsvoWX/AZtNwI+eyG8XUu5R7RJ FJtA== 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 e9si1686529edn.18.2020.05.29.00.48.04; Fri, 29 May 2020 00:48:27 -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 S1725821AbgE2HoX (ORCPT + 99 others); Fri, 29 May 2020 03:44:23 -0400 Received: from mga03.intel.com ([134.134.136.65]:51936 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbgE2HoX (ORCPT ); Fri, 29 May 2020 03:44:23 -0400 IronPort-SDR: QbrQpwry0wytSmxjbDW4HybwYad/NCebnLhtdBRRaq0Lz+GvWAh3okOCPDxhdiqfiPQdqZGzdG wTga6sl3CCQg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 00:44:22 -0700 IronPort-SDR: G8obcFmNPHbFVkBmPQcY6wTi9d68PgeMjhnoNMTkZSkgpOzBGvfQEXibGPK++EiL6eCORSjyBt GNZs9mOtj8ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,447,1583222400"; d="scan'208";a="302754519" Received: from sqa-gate.sh.intel.com (HELO clx-ap-likexu.tsp.org) ([10.239.48.212]) by fmsmga002.fm.intel.com with ESMTP; 29 May 2020 00:44:20 -0700 From: Like Xu To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Like Xu Subject: [PATCH RESEND] Enable full width counting for KVM: x86/pmu Date: Fri, 29 May 2020 15:43:43 +0800 Message-Id: <20200529074347.124619-1-like.xu@linux.intel.com> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.21.3