KVM: arm/arm64: vgic: Don't flush/sync without a working vgic
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 27 Sep 2016 16:53:35 +0000 (18:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 16:03:39 +0000 (18:03 +0200)
commitebc12d64e70139b9d5720914d62e5efba295d98f
tree37c6b3c4255fbbfd9565789a964ef8ad441b7ca4
parent46848795ad096ece83489bbc8f6c8f32f42b21e8
KVM: arm/arm64: vgic: Don't flush/sync without a working vgic

commit 0099b7701f5296a758d9e6b945ec96f96847cc2f upstream.

If the vgic hasn't been created and initialized, we shouldn't attempt to
look at its data structures or flush/sync anything to the GIC hardware.

This fixes an issue reported by Alexander Graf when using a userspace
irqchip.

Fixes: 0919e84c0fc1 ("KVM: arm/arm64: vgic-new: Add IRQ sync/flush framework")
Reported-by: Alexander Graf <agraf@suse.de>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic.c
This page took 0.024032 seconds and 5 git commands to generate.