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>
Thu, 2 Oct 2014 15:19:21 +0000 (17:19 +0200)
commit38cb2f7b9a9ea6312429da05575a4bf6e697b573
treeb1b2aa20523f696d8e33420479d9f806a82714b7
parentaef14f44d897ca82917d6e5d5ad847c4a9e24c40
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>
(cherry picked from commit c1bfb577addd4867a82c4f235824a315d5afb94a)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c