From: Marc Zyngier Subject: Re: [PATCH] arm64: KVM: fix perf cycle counter support for VHE Date: Tue, 30 Apr 2019 10:14:58 +0100 Message-ID: <8022b69e-f4aa-cc06-0d5a-5ef980cf0d4a@arm.com> References: <20190429191305.21000-1-andrew.murray@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 636594A4DB for ; Tue, 30 Apr 2019 05:15:04 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rTLhK7qSajTG for ; Tue, 30 Apr 2019 05:15:03 -0400 (EDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id DFA754A47A for ; Tue, 30 Apr 2019 05:15:02 -0400 (EDT) In-Reply-To: <20190429191305.21000-1-andrew.murray@arm.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Andrew Murray Cc: Catalin Marinas , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org List-Id: kvmarm@lists.cs.columbia.edu [+ Christoffer, James, Julien] Hi Andrew, On 29/04/2019 20:13, Andrew Murray wrote: > The kvm_vcpu_pmu_{read,write}_evtype_direct functions do not handle > the cycle counter use-case, this leads to inaccurate counts and a > WARN message when using perf with the cycle counter (-e cycle). > > Let's fix this by adding a use case for pmccfiltr_el0. > > Reported-by: Suzuki K Poulose > Signed-off-by: Andrew Murray Queued, with Fixes: 39e3406a090a ("arm64: KVM: Avoid isb's by using direct pmxevtyper sysreg") In the future, please cc all the KVM/arm maintainers/reviewers so that we do not risk overseeing an important patch. Thanks, M. -- Jazz is not dead. It just smells funny...