[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 6/6] xen/arm: disable a physical IRQ when the guest disables the corresponding IRQ



On Mon, 2013-12-09 at 12:37 +0000, Stefano Stabellini wrote:
> On Fri, 6 Dec 2013, Julien Grall wrote:
> > On 12/06/2013 05:26 PM, Stefano Stabellini wrote:
> > > Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> > 
> > [..]
> > 
> > >   static void vgic_enable_irqs(struct vcpu *v, uint32_t r, int n)
> > >   {
> > >       struct pending_irq *p;
> > > @@ -494,8 +509,10 @@ static int vgic_distr_mmio_write(struct vcpu *v,
> > > mmio_info_t *info)
> > >           rank = vgic_irq_rank(v, 1, gicd_reg - GICD_ICENABLER);
> > >           if ( rank == NULL) goto write_ignore;
> > >           vgic_lock_rank(v, rank);
> > > +        tr = rank->ienable;
> > >           rank->ienable &= ~*r;
> > >           vgic_unlock_rank(v, rank);
> > > +        vgic_disable_irqs(v, (*r) & (~tr), gicd_reg - GICD_ICENABLER);
> > 
> > 
> > Why ~tr? We want to disable only enabled IRQ.
> 
> You are right, I'll make the change.

Don't forget that the semantics of this register are that you right a 1
to the bit position for the interrupt you want to disable.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.