]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64: Handle counter access early in non-HYP context
authorMarc Zyngier <maz@kernel.org>
Tue, 17 Dec 2024 14:23:15 +0000 (14:23 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 2 Jan 2025 19:19:10 +0000 (19:19 +0000)
commitb86fc215dc26d8e1bb274f0a7990b5deab740ac8
treed7d11c89195c74e9bc15961e93dbcd303093ff85
parent9b3b2f00291e1abd54bff345761a7fadd8df4daa
KVM: arm64: Handle counter access early in non-HYP context

We already deal with CNTPCT_EL0 accesses in non-HYP context.
Let's add CNTVCT_EL0 as a good measure.

This is also an opportunity to simplify things and make it
plain that this code is only for non-HYP context handling.

Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241217142321.763801-8-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/hyp/switch.h