From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A8123751 for ; Mon, 16 Oct 2023 12:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9DD0DDA7; Mon, 16 Oct 2023 05:47:49 -0700 (PDT) Received: from [10.57.1.186] (unknown [10.57.1.186]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2218E3F5A1; Mon, 16 Oct 2023 05:47:08 -0700 (PDT) Message-ID: <88ba308b-762f-fb7a-0324-eefae2efe464@arm.com> Date: Mon, 16 Oct 2023 13:47:06 +0100 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 0/2] KVM: arm64: PMU event filtering fixes To: Oliver Upton , kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Zenghui Yu References: <20231013052901.170138-1-oliver.upton@linux.dev> From: Suzuki K Poulose In-Reply-To: <20231013052901.170138-1-oliver.upton@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 13/10/2023 06:28, Oliver Upton wrote: > Set of fixes to KVM's handling of the exception level event filtering in > the PMU event type registers. > > I dropped the PMU+NV disablement this time around as we need a complete > fix for that problem. At the same time, I want to get a rework of our > sysreg masks upstream soon to avoid any negative interaction with new > PMU features going in on the driver side of things. > > Additionally, I added a fix for the non-secure filtering bits that > Suzuki had spotted (thanks!) > > Oliver Upton (2): > KVM: arm64: Treat PMEVTYPER_EL0.NSH as RES0 > KVM: arm64: Virtualise PMEVTYPER_EL1.{NSU,NSK} > > arch/arm64/kvm/pmu-emul.c | 26 +++++++++++++++++--------- > arch/arm64/kvm/sys_regs.c | 8 ++++++-- > include/kvm/arm_pmu.h | 5 +++++ > include/linux/perf/arm_pmuv3.h | 8 +++++--- > 4 files changed, 33 insertions(+), 14 deletions(-) > > > base-commit: 6465e260f48790807eef06b583b38ca9789b6072 For the series: Reviewed-by: Suzuki K Poulose