]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Tighten the definition of FEAT_PMUv3p9
authorMarc Zyngier <maz@kernel.org>
Mon, 14 Jul 2025 11:55:03 +0000 (12:55 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 16 Jul 2025 03:39:42 +0000 (20:39 -0700)
commit3096d238ec490f013263f8496ad1a1049f476856
tree738300c1ae90415fb7cecaec6e2ff28304832c74
parentcd64587f10b12919a0291570850f07ddd2e5e827
KVM: arm64: Tighten the definition of FEAT_PMUv3p9

The current definition of FEAT_PMUv3p9 doesn't check for the lack
of an IMPDEF PMU, which is encoded as 0b1111, but considered unsigned.

Use the recently introduced helper to address the issue (which is
harmless, as KVM never advertises an IMPDEF PMU).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250714115503.3334242-6-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/config.c