|
[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 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.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |