KVM: arm64: PMU: Make kvm_pmc the main data structure
authorMarc Zyngier <maz@kernel.org>
Sun, 13 Nov 2022 16:38:32 +0000 (16:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 19 Nov 2022 12:56:39 +0000 (12:56 +0000)
commitd56bdce586e7fabd2b3339f476e0e4c059b24e19
treed0fde421857dae96db60eb5c01c4fbd260327d01
parent9bad925dd741408825590eccc495d073cc246de0
KVM: arm64: PMU: Make kvm_pmc the main data structure

The PMU code has historically been torn between referencing a counter
as a pair vcpu+index or as the PMC pointer.

Given that it is pretty easy to go from one representation to
the other, standardise on the latter which, IMHO, makes the
code slightly more readable. YMMV.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221113163832.3154370-17-maz@kernel.org
arch/arm64/kvm/pmu-emul.c