]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: vgic: delay vgic allocation until init time
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 8 Jul 2014 11:09:06 +0000 (12:09 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 19 Sep 2014 01:48:58 +0000 (18:48 -0700)
commitebb94184662a052d6e32214169f22ead7049db01
treee74ef3916edb9b56c71b69108fe310ee66b265ae
parent38e40c58f9f34a36ef1a7cd73f88aa7ff8618cb3
arm/arm64: KVM: vgic: delay vgic allocation until init time

It is now quite easy to delay the allocation of the vgic tables
until we actually require it to be up and running (when the first
vcpu is kicking around, or someones tries to access the GIC registers).

This allow us to allocate memory for the exact number of CPUs we
have. As nobody configures the number of interrupts just yet,
use a fallback to VGIC_NR_IRQS_LEGACY.

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