Re: [PATCH v2 00/11] KVM in-guest performance monitoring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

>From 520cf568954500457e1efe37e144c022a767e41f Mon Sep 17 00:00:00 2001
From: Avi Kivity <avi@xxxxxxxxxx>
Date: Mon, 9 May 2011 09:59:52 +0300
Subject: [PATCH] pmu hack

Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
 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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux