KVM: arm64: nv: Add trap forwarding for ERET and SMC
authorMarc Zyngier <maz@kernel.org>
Fri, 19 Apr 2024 10:29:26 +0000 (11:29 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 20 Apr 2024 11:42:50 +0000 (12:42 +0100)
commit95537f06b9e826766f32e513d714e1cda468ef15
treee67bcd6f15cce82293cfa62ff1c8965a925ad542
parent04ab519bb86df10bb8b72054fce9af1d72c36805
KVM: arm64: nv: Add trap forwarding for ERET and SMC

Honor the trap forwarding bits for both ERET and SMC, using a new
helper that checks for common conditions.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Co-developed-by: Jintack Lim <jintack.lim@linaro.org>
Signed-off-by: Jintack Lim <jintack.lim@linaro.org>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240419102935.1935571-7-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_nested.h
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/handle_exit.c