[PATCH] KVM: arm64: Fix TRFCR_EL1/PMSCR_EL1 access in hVHE mode
Oliver Upton
oliver.upton at linux.dev
Fri Mar 1 11:03:09 PST 2024
On Thu, 29 Feb 2024 14:54:17 +0000, Marc Zyngier wrote:
> When running in hVHE mode, EL1 accesses are performed with the EL12
> accessor, as we run with HCR_EL2.E2H=1.
>
> Unfortunately, both PMSCR_EL1 and TRFCR_EL1 are used with the
> EL1 accessor, meaning that we actually affect the EL2 state. Duh.
>
> Switch to using the {read,write}_sysreg_el1() helpers that will do
> the right thing in all circumstances.
>
> [...]
Applied to kvmarm/next, thanks!
[1/1] KVM: arm64: Fix TRFCR_EL1/PMSCR_EL1 access in hVHE mode
https://git.kernel.org/kvmarm/kvmarm/c/9a3bfb27ef65
--
Best,
Oliver
More information about the linux-arm-kernel
mailing list