arm/arm64: KVM: vgic: switch to dynamic allocation
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 8 Jul 2014 11:09:01 +0000 (12:09 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 19 Sep 2014 01:48:52 +0000 (18:48 -0700)
commitc1bfb577addd4867a82c4f235824a315d5afb94a
tree4e2fba53b594691839d2c511862b01c83783e1c2
parent71afaba4a2e98bb7bdeba5078370ab43d46e67a1
arm/arm64: KVM: vgic: switch to dynamic allocation

So far, all the VGIC data structures are statically defined by the
*maximum* number of vcpus and interrupts it supports. It means that
we always have to oversize it to cater for the worse case.

Start by changing the data structures to be dynamically sizeable,
and allocate them at runtime.

The sizes are still very static though.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/arm.c
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c