arm/arm64: KVM: vgic: Parametrize VGIC_NR_SHARED_IRQS
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 8 Jul 2014 11:09:02 +0000 (12:09 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 19 Sep 2014 01:48:56 +0000 (18:48 -0700)
commitfb65ab63b8cae510ea1e43e68b5da2f9980aa6d5
tree65b921f5021b04afdc09cdd64498d115ce1fb6dd
parentc1bfb577addd4867a82c4f235824a315d5afb94a
arm/arm64: KVM: vgic: Parametrize VGIC_NR_SHARED_IRQS

Having a dynamic number of supported interrupts means that we
cannot relly on VGIC_NR_SHARED_IRQS being fixed anymore.

Instead, make it take the distributor structure as a parameter,
so it can return the right value.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c