KVM: arm/arm64: vgic: Consider priority and active state for pending irq
authorChristoffer Dall <christoffer.dall@arm.com>
Sat, 1 Dec 2018 21:21:47 +0000 (13:21 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:06 +0000 (17:47 +0000)
commit9009782a4937ad0f4a4be6945080d7fa77fa4092
treeea52938946cddf7a2c694e2731e3d3388ea2f7bc
parentc23b2e6fc4ca346018618266bcabd335c0a8a49e
KVM: arm/arm64: vgic: Consider priority and active state for pending irq

When checking if there are any pending IRQs for the VM, consider the
active state and priority of the IRQs as well.

Otherwise we could be continuously scheduling a guest hypervisor without
it seeing an IRQ.

Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic.c