KVM: arm/arm64: GICv4: Use pending_last as a scheduling hint
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Oct 2017 14:28:47 +0000 (15:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 10 Nov 2017 08:41:56 +0000 (09:41 +0100)
commitc971968071d3ec5e8605f9da9e867441e2edf000
tree1411899a2e98bc1420ee23bd03369b4377ff639a
parent6ce18e3a5f3308670b49093b1c350d2834428358
KVM: arm/arm64: GICv4: Use pending_last as a scheduling hint

When a vPE exits, the pending_last flag is set when there are pending
VLPIs stored in the pending table. Similarily, this flag will be set
when a doorbell interrupt fires, as it indicates the same condition.

Let's update kvm_vgic_vcpu_pending_irq() to account for that
flag as well, making a vcpu runnable when set.

Acked-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic.c