KVM: arm64: Move GICv3 trap configuration to kvm_calculate_traps()
authorMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 15:25:07 +0000 (16:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 17:32:55 +0000 (18:32 +0100)
commitd2137ba8d8fe56cd2470c82b98e494cbcababd76
tree276ea91bd4e47eeb34c6e58c9210cdbb5bf488dc
parent5be63fc19fcaa4c236b307420483578a56986a37
KVM: arm64: Move GICv3 trap configuration to kvm_calculate_traps()

Follow the pattern introduced with vcpu_set_hcr(), and introduce
vcpu_set_ich_hcr(), which configures the GICv3 traps at the same
point.

This will allow future changes to introduce trap configuration on
a per-VM basis.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240827152517.3909653-2-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/vgic/vgic-v3.c
arch/arm64/kvm/vgic/vgic.h