]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: nv: Respect virtual HCR_EL2.TWx setting
authorJintack Lim <jintack.lim@linaro.org>
Tue, 25 Feb 2025 17:29:25 +0000 (17:29 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 3 Mar 2025 22:57:10 +0000 (14:57 -0800)
commit69c9176c3862345850b7fecbe2546bfd051dc7da
tree8c8a406dbabd1aec402c3701d1b33fd94817b36a
parent201c8d40dde900719e9dc1548698e18195f46443
KVM: arm64: nv: Respect virtual HCR_EL2.TWx setting

Forward exceptions due to WFI or WFE instructions to the virtual EL2 if
they are not coming from the virtual EL2 and virtual HCR_EL2.TWx is set.

Signed-off-by: Jintack Lim <jintack.lim@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250225172930.1850838-12-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/handle_exit.c