diff options
author | Marc Zyngier <maz@kernel.org> | 2024-08-27 17:25:07 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2024-08-27 19:32:55 +0200 |
commit | d2137ba8d8fe56cd2470c82b98e494cbcababd76 (patch) | |
tree | 276ea91bd4e47eeb34c6e58c9210cdbb5bf488dc /arch/arm64/kvm/sys_regs.c | |
parent | Linux 6.11-rc5 (diff) | |
download | linux-d2137ba8d8fe56cd2470c82b98e494cbcababd76.tar.xz linux-d2137ba8d8fe56cd2470c82b98e494cbcababd76.zip |
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>
Diffstat (limited to 'arch/arm64/kvm/sys_regs.c')
-rw-r--r-- | arch/arm64/kvm/sys_regs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 31e49da867ff..257c8da23a4e 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -4551,6 +4551,7 @@ void kvm_calculate_traps(struct kvm_vcpu *vcpu) mutex_lock(&kvm->arch.config_lock); vcpu_set_hcr(vcpu); + vcpu_set_ich_hcr(vcpu); if (cpus_have_final_cap(ARM64_HAS_HCX)) { /* |