Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: arm64: vgic: Allow registration of a non-maskable maintenance interrupt

Our Apple M1/M2 friends do have a per-CPU maintenance interrupt,
but no mask to make use of it in the standard Linux framework.

Given that KVM directly drives the *source* of the interrupt and
leaves the GIC interrupt always enabled, there is no harm in tolerating
such a setup. It will become useful once we enable NV on M2 HW.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230103095022.3230946-3-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>

authored by

Marc Zyngier and committed by
Oliver Upton
43c5c868 b7bfaa76

+1 -1
+1 -1
arch/arm64/kvm/vgic/vgic-init.c
··· 572 572 if (ret) 573 573 return ret; 574 574 575 - if (!has_mask) 575 + if (!has_mask && !kvm_vgic_global_state.maint_irq) 576 576 return 0; 577 577 578 578 ret = request_percpu_irq(kvm_vgic_global_state.maint_irq,