diff mbox

[GIT,PULL,1/9] KVM: ARM: VGIC: Optimize the vGIC vgic_update_irq_pending function.

Message ID 1418124368-28418-2-git-send-email-christoffer.dall@linaro.org
State Accepted
Commit 7d39f9e32c761abaa84bef7c4a4d9349ba8638e0
Headers show

Commit Message

Christoffer Dall Dec. 9, 2014, 11:26 a.m. UTC
From: wanghaibin <wanghaibin.wang@huawei.com>

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>
---
 virt/kvm/arm/vgic.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
index 3aaca49..5acf2c9 100644
--- a/virt/kvm/arm/vgic.c
+++ b/virt/kvm/arm/vgic.c
@@ -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);