[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm/vgic: initialize pending_irqs.lr_queue
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1342542127 -3600 # Node ID 4d1ca7cd04efd635c5dbf2c419849c4fdc549ada # Parent 10de6fc19fb928b3f5e4f2aef6dcb4dacde5d323 arm/vgic: initialize pending_irqs.lr_queue Properly initialize all the pending_irqs.lr_queue like we do for inflight. Check whether we already have the irq in lr_queue before adding it. Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 10de6fc19fb9 -r 4d1ca7cd04ef xen/arch/arm/gic.c --- a/xen/arch/arm/gic.c Tue Jul 17 17:22:06 2012 +0100 +++ b/xen/arch/arm/gic.c Tue Jul 17 17:22:07 2012 +0100 @@ -456,6 +456,9 @@ void gic_set_guest_irq(struct vcpu *v, u } n = irq_to_pending(v, virtual_irq); + if ( !list_empty(&n->lr_queue) ) + goto out; + list_for_each_entry ( iter, &v->arch.vgic.lr_pending, lr_queue ) { if ( iter->priority > priority ) diff -r 10de6fc19fb9 -r 4d1ca7cd04ef xen/arch/arm/vgic.c --- a/xen/arch/arm/vgic.c Tue Jul 17 17:22:06 2012 +0100 +++ b/xen/arch/arm/vgic.c Tue Jul 17 17:22:07 2012 +0100 @@ -84,7 +84,10 @@ int domain_vgic_init(struct domain *d) d->arch.vgic.pending_irqs = xzalloc_array(struct pending_irq, d->arch.vgic.nr_lines); for (i=0; i<d->arch.vgic.nr_lines; i++) + { INIT_LIST_HEAD(&d->arch.vgic.pending_irqs[i].inflight); + INIT_LIST_HEAD(&d->arch.vgic.pending_irqs[i].lr_queue); + } for (i=0; i<DOMAIN_NR_RANKS(d); i++) spin_lock_init(&d->arch.vgic.shared_irqs[i].lock); return 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |