KVM: arm64: nv: Honor HFGITR_EL2.ERET being set
authorMarc Zyngier <maz@kernel.org>
Fri, 19 Apr 2024 10:29:28 +0000 (11:29 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 20 Apr 2024 11:42:51 +0000 (12:42 +0100)
commit4cc3f31914d6df9dba8825db933d19c60028f5a8
treec9e041f845f8bf99b8a069e102d079c328415c2d
parentdd0717a998f77f449c70bee82626cbf9913fe78d
KVM: arm64: nv: Honor HFGITR_EL2.ERET being set

If the L1 hypervisor decides to trap ERETs while running L2,
make sure we don't try to emulate it, just like we wouldn't
if it had its NV bit set.

The exception will be reinjected from the core handler.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240419102935.1935571-9-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/vhe/switch.c