xen/arm: Clear the IRQ_GUEST bit in desc->status when releasing an IRQ
authorEric Trudeau <etrudeau@broadcom.com>
Fri, 12 Jul 2013 17:30:48 +0000 (13:30 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 19 Jul 2013 11:54:15 +0000 (12:54 +0100)
While adding support for guest domU IRQs, I noticed that release_irq did
not clear the IRQ_GUEST bit in the IRQ's desc->status field.
This is probably not a big deal since not many situations are likely to arise
where an IRQ is sometimes host and sometimes guest.

Signed-off-by: Eric Trudeau <etrudeau@broadcom.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/gic.c

index cafb68110a8e05ebaa3d2bc8dce5c382b4b81471..ccce56543c20afd1809ca1096c604047ae2a3aea 100644 (file)
@@ -522,6 +522,7 @@ void __init release_irq(unsigned int irq)
     action = desc->action;
     desc->action  = NULL;
     desc->status |= IRQ_DISABLED;
+    desc->status &= ~IRQ_GUEST;
 
     spin_lock(&gic.lock);
     desc->handler->shutdown(desc);