KVM: arm64: Program the timer traps with VHE layout in hVHE mode
authorMarc Zyngier <maz@kernel.org>
Fri, 9 Jun 2023 16:21:57 +0000 (17:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 12 Jun 2023 23:17:24 +0000 (23:17 +0000)
commitaca18585db4fd0ed0bd7420eddcdc39a535194fe
tree40bcadf7988431696f297b1e4867d92e7fca66ac
parent75c76ab5a641b64e872b6e136b5edf8a72009cc6
KVM: arm64: Program the timer traps with VHE layout in hVHE mode

Just like the rest of the timer code, we need to shift the enable
bits around when HCR_EL2.E2H is set, which is the case in hVHE mode.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230609162200.2024064-15-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/timer-sr.c