KVM: arm64: nv: Add trap forwarding for HFGITR_EL2
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Aug 2023 18:38:55 +0000 (19:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Aug 2023 09:00:27 +0000 (10:00 +0100)
commit039f9f12de5fc761d2b32fa072071533aa8cbb3b
tree391e95559c12cbad03d4ce8c5ab5bcf9a3ce6dfa
parent5a24ea7869857251a83da1512209f76003bc09db
KVM: arm64: nv: Add trap forwarding for HFGITR_EL2

Similarly, implement the trap forwarding for instructions affected
by HFGITR_EL2.

Note that the TLBI*nXS instructions should be affected by HCRX_EL2,
which will be dealt with down the line. Also, ERET* and SVC traps
are handled separately.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Jing Zhang <jingzhangos@google.com>
Link: https://lore.kernel.org/r/20230815183903.2735724-22-maz@kernel.org
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/emulate-nested.c