From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH v8 00/20] KVM: ARM64: Add guest PMU support Date: Thu, 7 Jan 2016 14:12:27 +0000 Message-ID: <20160107141227.GE23028@arm.com> References: <1450771695-11948-1-git-send-email-zhaoshenglong@huawei.com> <568E71DE.9030905@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Shannon Zhao , kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, wei@redhat.com, cov@codeaurora.org, shannon.zhao@linaro.org, peter.huangpeng@huawei.com, hangaohuai@huawei.com, Peter Maydell To: Marc Zyngier Return-path: Received: from foss.arm.com ([217.140.101.70]:39973 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbcAGOMa (ORCPT ); Thu, 7 Jan 2016 09:12:30 -0500 Content-Disposition: inline In-Reply-To: <568E71DE.9030905@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 07, 2016 at 02:10:38PM +0000, Marc Zyngier wrote: > On 22/12/15 08:07, Shannon Zhao wrote: > > From: Shannon Zhao > > > > This patchset adds guest PMU support for KVM on ARM64. It takes > > trap-and-emulate approach. When guest wants to monitor one event, it > > will be trapped by KVM and KVM will call perf_event API to create a perf > > event and call relevant perf_event APIs to get the count value of event. > > > > Use perf to test this patchset in guest. When using "perf list", it > > shows the list of the hardware events and hardware cache events perf > > supports. Then use "perf stat -e EVENT" to monitor some event. For > > example, use "perf stat -e cycles" to count cpu cycles and > > "perf stat -e cache-misses" to count cache misses. > > I finally feel like we're pretty close to something we could merge. My > current concerns are: The merge window opens on Monday and I'm not prepared to take further PMU changes at this point (unless they're bug fixes, of course). This needs to wait until 4.6. Will From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 7 Jan 2016 14:12:27 +0000 Subject: [PATCH v8 00/20] KVM: ARM64: Add guest PMU support In-Reply-To: <568E71DE.9030905@arm.com> References: <1450771695-11948-1-git-send-email-zhaoshenglong@huawei.com> <568E71DE.9030905@arm.com> Message-ID: <20160107141227.GE23028@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jan 07, 2016 at 02:10:38PM +0000, Marc Zyngier wrote: > On 22/12/15 08:07, Shannon Zhao wrote: > > From: Shannon Zhao > > > > This patchset adds guest PMU support for KVM on ARM64. It takes > > trap-and-emulate approach. When guest wants to monitor one event, it > > will be trapped by KVM and KVM will call perf_event API to create a perf > > event and call relevant perf_event APIs to get the count value of event. > > > > Use perf to test this patchset in guest. When using "perf list", it > > shows the list of the hardware events and hardware cache events perf > > supports. Then use "perf stat -e EVENT" to monitor some event. For > > example, use "perf stat -e cycles" to count cpu cycles and > > "perf stat -e cache-misses" to count cache misses. > > I finally feel like we're pretty close to something we could merge. My > current concerns are: The merge window opens on Monday and I'm not prepared to take further PMU changes at this point (unless they're bug fixes, of course). This needs to wait until 4.6. Will