KVM: arm64: Simplify handling of CNTKCTL_EL12
authorMarc Zyngier <maz@kernel.org>
Wed, 4 Sep 2024 08:24:17 +0000 (09:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Sep 2024 18:49:16 +0000 (19:49 +0100)
commit989fce63b2cb5061701c9fa04711d992dfaff5c6
treefda0fca7d55b2996e3274d11fcd645d175c13cc9
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
KVM: arm64: Simplify handling of CNTKCTL_EL12

We go trough a great deal of effort to map CNTKCTL_EL12 to CNTKCTL_EL1
while hidding this mapping from userspace via a special visibility helper.

However, it would be far simpler to just provide an accessor doing the
mapping job, removing the need for a visibility helper.

With that done, we can also remove the EL12_REG() macro which serves
no purpose.

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