]> exis.tech > repos - linux.git/commit
KVM: arm64: Restore POR_EL0 access to host EL0
authorJoey Gouly <joey.gouly@arm.com>
Thu, 4 Jun 2026 10:54:34 +0000 (11:54 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 5 Jun 2026 10:48:24 +0000 (11:48 +0100)
commitcbaffe843a942c0d3102e0f9bce0e72b029b2594
tree684d1bc5ba99ceef37617856bad6ea0ec773f4c5
parentf2ca45b50d4216c9cc7ffabf50d9ad1932209251
KVM: arm64: Restore POR_EL0 access to host EL0

CPTR_EL2.E0POE was being cleared in __deactivate_cptr_traps_vhe(), which meant
that any accesses to POR_EL0 from host EL0 would trap and be reported to
userspace as an Illegal instruction. This would happen after running any VM,
regardless if it used POE or not.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Link: https://sashiko.dev/#/patchset/20260602155430.2088142-1-maz@kernel.org?part=1
Link: https://patch.msgid.link/20260604105434.2297268-1-joey.gouly@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger,kernel.org
arch/arm64/kvm/hyp/include/hyp/switch.h