]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Guard kvm_vgic_map_is_active against !vgic_initialized
authorChristoffer Dall <cdall@linaro.org>
Wed, 19 Oct 2016 10:40:17 +0000 (12:40 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 15:23:09 +0000 (16:23 +0100)
commit840603832db918fcf3137f8dc5b51d51fb986800
tree816939a7baa570c234d5c89757ee9364bb00cf8a
parent01cd40756d65d4088aa0e9fda5b0e1dff335fc1c
KVM: arm/arm64: Guard kvm_vgic_map_is_active against !vgic_initialized

If the vgic is not initialized, don't try to grab its spinlocks or
traverse its data structures.

This is important because we soon have to start considering the active
state of a virtual interrupts when doing vcpu_load, which may happen
early on before the vgic is initialized.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic.c