From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH v2 00/11] KVM in-guest performance monitoring Date: Tue, 14 Jun 2011 11:33:35 -0600 Message-ID: <4DF79B6F.10102@cisco.com> References: <1307972106-2468-1-git-send-email-avi@redhat.com> <4DF66B1A.6060606@cisco.com> <4DF71DA3.2080300@redhat.com> <4DF7972F.3040103@cisco.com> <4DF79941.9050705@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo To: Jan Kiszka , Avi Kivity Return-path: Received: from sj-iport-2.cisco.com ([171.71.176.71]:65426 "EHLO sj-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094Ab1FNRdo (ORCPT ); Tue, 14 Jun 2011 13:33:44 -0400 In-Reply-To: <4DF79941.9050705@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/14/2011 11:24 AM, Jan Kiszka wrote: > On 2011-06-14 19:15, David Ahern wrote: >> On 06/14/2011 02:36 AM, Avi Kivity wrote: >>> 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. >>> >> >> qemu-kvm is not cooperating. git repo as of 05f1737582 with your patch >> is aborting: >> >> Welcome to Fedora >> Starting udev: [ 4.031626] udev[409]: starting version 161 >> [ 4.831159] piix4_smbus 0000:00:01.3: SMBus Host Controller at >> 0xb100, revision 0 >> qemu-kvm: /exports/daahern/qemu-kvm.git/hw/msix.c:616: >> msix_unset_mask_notifier: Assertion `dev->msix_mask_notifier' failed. > > Use the qemu-kvm next branch. It has the fix you need. Indeed it does. Thanks. Avi: still no luck: [ 0.047996] Performance Events: unsupported p6 CPU model 0 no PMU driver, software events only. qemu-kvm next branch, ce5f0a588b740e8f28f46a6009e12cfa72edc51f with your perfmon cpuid change. Host and guest are both running your kvm next branch with pmu patch series. David > > Jan >