KVM: ARM: VGIC: Optimize the vGIC vgic_update_irq_pending function.
authorwanghaibin <wanghaibin.wang@huawei.com>
Mon, 17 Nov 2014 09:27:37 +0000 (09:27 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 25 Nov 2014 13:57:26 +0000 (13:57 +0000)
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

index 3aaca49de3257eed0bd905ac26112cacd49588dd..5acf2c93f6165702f2965ae3e4e7d7735994e73a 100644 (file)
@@ -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);
This page took 0.029064 seconds and 5 git commands to generate.