From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 0/2] KVM: x86: Enabling PMU v3 on non-SMT VMs Date: Wed, 20 Aug 2014 13:01:08 +0200 Message-ID: <53F47FF4.7030205@redhat.com> References: <1408530353-17790-1-git-send-email-namit@cs.technion.ac.il> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gleb@kernel.org, hpa@zytor.com, joro@8bytes.org, mingo@redhat.com, kvm@vger.kernel.org To: Nadav Amit Return-path: Received: from mail-we0-f179.google.com ([74.125.82.179]:53534 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbaHTLBN (ORCPT ); Wed, 20 Aug 2014 07:01:13 -0400 Received: by mail-we0-f179.google.com with SMTP id u57so7673157wes.38 for ; Wed, 20 Aug 2014 04:01:11 -0700 (PDT) In-Reply-To: <1408530353-17790-1-git-send-email-namit@cs.technion.ac.il> Sender: kvm-owner@vger.kernel.org List-ID: Il 20/08/2014 12:25, Nadav Amit ha scritto: > This patch-set enables PMU v3 on non-SMT VMs. All the PMU v3 features are > already in KVM except the AnyThread support. However, AnyThread is only > important on SMT machines, and can be ignored otherwise. Reporting PMU v3 can > be useful for OSes that rely on the version, and not on other CPUID fields. > > Thanks for reviewing the code. Note that it was not tested on AMD machine. > > Nadav Amit (2): > KVM: x86: Clarify PMU related features bit manipulation > KVM: x86: pmu: Enabling PMU v3 > > arch/x86/include/asm/kvm_host.h | 1 + > arch/x86/kvm/cpuid.c | 2 +- > arch/x86/kvm/pmu.c | 35 +++++++++++++++++++++++------------ > arch/x86/kvm/svm.c | 15 +++++++++++++++ > arch/x86/kvm/vmx.c | 16 ++++++++++++++++ > 5 files changed, 56 insertions(+), 13 deletions(-) > For now I've reviewed patch 1 and will apply that to kvm/queue. Paolo