KVM: arm64: nv: Expand ERET trap forwarding to handle FGT
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Aug 2023 18:38:58 +0000 (19:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Aug 2023 09:00:27 +0000 (10:00 +0100)
commitea3b27d8dea081f1693b310322ae71fa75d1875b
treec711ee3a49cc3e62fa5ca49cf87531e514a31f94
parenta77b31dce4375be15014b10e8f94a149592ea6b6
KVM: arm64: nv: Expand ERET trap forwarding to handle FGT

We already handle ERET being trapped from a L1 guest in hyp context.
However, with FGT, we can also have ERET being trapped from L2, and
this needs to be reinjected into L1.

Add the required exception routing.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Jing Zhang <jingzhangos@google.com>
Link: https://lore.kernel.org/r/20230815183903.2735724-25-maz@kernel.org
arch/arm64/kvm/handle_exit.c