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>
Thu, 2 Oct 2014 15:19:24 +0000 (17:19 +0200)
commite1fde0a1e746c70d026c1388c9d1c0bce278ae01
treef0adbee92fcda4987f90e7dcca2c6ccf14ee0a41
parentb9ca28a414c2e5dfb707bcba625eb76f334c787f
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>
(cherry picked from commit a98f26f183801685ef57333de4bafd4bbc692c7c)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
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