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

[Xen-changelog] [xen master] xen/arm: Clear the IRQ_GUEST bit in desc->status when releasing an IRQ



commit 47193a4437f18cce75230e0fb1ca3b3c78fec7b0
Author:     Eric Trudeau <etrudeau@xxxxxxxxxxxx>
AuthorDate: Fri Jul 12 13:30:48 2013 -0400
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Fri Jul 19 12:54:15 2013 +0100

    xen/arm: Clear the IRQ_GUEST bit in desc->status when releasing an IRQ
    
    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@xxxxxxxxxxxx>
    Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 xen/arch/arm/gic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
index cafb681..ccce565 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -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);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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