]> 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)
commit86c51f75f01f29595693d78d7d9c59431fc06edb
treee74ef3916edb9b56c71b69108fe310ee66b265ae
parentedb32f6174287d816475e0c0cb77fa2a196a6c60
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