]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Add missing hyp_enter when trapping sysreg
authorVincent Donnefort <vdonnefort@google.com>
Wed, 17 Jun 2026 09:52:38 +0000 (10:52 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 23 Jul 2026 08:56:57 +0000 (09:56 +0100)
commite7821048e8d72a94b1fb7422f8b45aa374ff076f
tree5c5599c313335e1e6331c08eccefbd66c031cc1d
parentca28278d10ec234592989ad370d58294b9d43e0f
KVM: arm64: Add missing hyp_enter when trapping sysreg

Add a missing hypervisor event call for hyp_enter on sysreg trapping,
causing an unbalanced hyp_enter/hyp_exit.

The enum hyp_enter_exit_reason is not ABI, so we can keep the ERET
reasons at the end for clarity.

Fixes: 696dfec22b8e ("KVM: arm64: Add hyp_enter/hyp_exit events to nVHE/pKVM hyp")
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260617095238.1530121-1-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_hypevents.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c
arch/arm64/kvm/hyp_trace.c