From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH v2 00/11] KVM in-guest performance monitoring Date: Tue, 14 Jun 2011 11:36:51 +0300 Message-ID: <4DF71DA3.2080300@redhat.com> References: <1307972106-2468-1-git-send-email-avi@redhat.com> <4DF66B1A.6060606@cisco.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040206030306000604080109" Cc: Marcelo Tosatti , kvm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo To: David Ahern Return-path: Received: from mx1.redhat.com ([209.132.183.28]:47213 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755360Ab1FNIhC (ORCPT ); Tue, 14 Jun 2011 04:37:02 -0400 In-Reply-To: <4DF66B1A.6060606@cisco.com> Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------040206030306000604080109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/13/2011 10:55 PM, David Ahern wrote: > On 06/13/2011 07:34 AM, Avi Kivity wrote: > > This patchset exposes an emulated version 1 architectural performance > > monitoring unit to KVM guests. The PMU is emulated using perf_events, > > so the host kernel can multiplex host-wide, host-user, and the > > guest on available resources. > > Any particular magic needed to try this patchset? > You'll need the attached patch, '-cpu host' (or '-cpu host,model=0' sometimes), and, as patch 2 is a guest bug fix, you'll need to run the patched kernel in the guest as well. -- error compiling committee.c: too many arguments to function --------------040206030306000604080109 Content-Type: text/x-patch; name="0001-pmu-hack.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-pmu-hack.patch" >>From 520cf568954500457e1efe37e144c022a767e41f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 9 May 2011 09:59:52 +0300 Subject: [PATCH] pmu hack Signed-off-by: Avi Kivity --- target-i386/cpuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 091d812..52ee7a6 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -1124,7 +1124,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, break; case 0xA: /* Architectural Performance Monitoring Leaf */ - *eax = 0; + *eax = 0x07280201; *ebx = 0; *ecx = 0; *edx = 0; -- 1.7.5.3 --------------040206030306000604080109--