Skip to content

Commit

Permalink
KVM: ARM: VGIC: Optimize the vGIC vgic_update_irq_pending function.
Browse files Browse the repository at this point in the history
When vgic_update_irq_pending with level-sensitive false, it is need to
deactivates an interrupt, and, it can go to out directly.
Here return a false value, because it will be not need to kick.

Signed-off-by: wanghaibin <wanghaibin.wang@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
wanghaibin authored and Marc Zyngier committed Nov 25, 2014
1 parent f62c95f commit 7d39f9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virt/kvm/arm/vgic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,9 @@ static bool vgic_update_irq_pending(struct kvm *kvm, int cpuid,
} else {
vgic_dist_irq_clear_pending(vcpu, irq_num);
}

ret = false;
goto out;
}

enabled = vgic_irq_is_enabled(vcpu, irq_num);
Expand Down

0 comments on commit 7d39f9e

Please sign in to comment.