arm/arm64: KVM: vgic: make number of irqs a configurable attribute
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 8 Jul 2014 11:09:07 +0000 (12:09 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 19 Sep 2014 01:48:58 +0000 (18:48 -0700)
commita98f26f183801685ef57333de4bafd4bbc692c7c
tree8b33a5d7d13d8c2f507223b548b766ba16d559b1
parent4956f2bc1fdee4bc336532f3f34635a8534cedfd
arm/arm64: KVM: vgic: make number of irqs a configurable attribute

In order to make the number of interrupts configurable, use the new
fancy device management API to add KVM_DEV_ARM_VGIC_GRP_NR_IRQS as
a VGIC configurable attribute.

Userspace can now specify the exact size of the GIC (by increments
of 32 interrupts).

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Documentation/virtual/kvm/devices/arm-vgic.txt
arch/arm/include/uapi/asm/kvm.h
arch/arm64/include/uapi/asm/kvm.h
virt/kvm/arm/vgic.c