KVM: arm64: nv: Add SVC trap forwarding
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Aug 2023 18:38:57 +0000 (19:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Aug 2023 09:00:27 +0000 (10:00 +0100)
commita77b31dce4375be15014b10e8f94a149592ea6b6
tree62fbc582d5e06bc4d388540c4001b6f94974a1b9
parentd0be0b2ede13247c53745d50e2a5993f2b27c802
KVM: arm64: nv: Add SVC trap forwarding

HFGITR_EL2 allows the trap of SVC instructions to EL2. Allow these
traps to be forwarded. Take this opportunity to deny any 32bit activity
when NV is enabled.

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-24-maz@kernel.org
arch/arm64/kvm/arm.c
arch/arm64/kvm/handle_exit.c