]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: selftests: Use the vCPU attr for setting nr of PMU counters
authorOliver Upton <oliver.upton@linux.dev>
Wed, 17 Sep 2025 21:20:40 +0000 (14:20 -0700)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 Sep 2025 18:23:32 +0000 (19:23 +0100)
commit7ae44d1cdad8a2483465373b9c9e91f0461ca9b2
tree29a7183f76e9369c25a0ebcbcc0615d7589302af
parent0910778e49c6639d265ab2d7a47d0b461b8e2963
KVM: arm64: selftests: Use the vCPU attr for setting nr of PMU counters

Configuring the number of implemented counters via PMCR_EL0.N was a bad
idea in retrospect as it interacts poorly with nested. Migrate the
selftest to use the vCPU attribute instead of the KVM_SET_ONE_REG
mechanism.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/vpmu_counter_access.c