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

[Xen-changelog] [xen-unstable] x86: Assert in_irq() while processing guest-bound interrupts.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219828293 -3600
# Node ID 2986c11b7edf4b1242cace49e1b317a10560eada
# Parent  c3f73c6f22668140d350aa86794b5f57a6b28918
x86: Assert in_irq() while processing guest-bound interrupts.

Actually a fair amount of infrastructure is onvolved these days, and
we'd like subsystems we call into know that we're in IRQ context so
they can handle that or BUG/ASSERT if appropriate.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/irq.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r c3f73c6f2266 -r 2986c11b7edf xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Wed Aug 27 09:57:53 2008 +0100
+++ b/xen/arch/x86/irq.c        Wed Aug 27 10:11:33 2008 +0100
@@ -63,7 +63,9 @@ asmlinkage void do_IRQ(struct cpu_user_r
 
     if ( likely(desc->status & IRQ_GUEST) )
     {
+        irq_enter();
         __do_IRQ_guest(vector);
+        irq_exit();
         spin_unlock(&desc->lock);
         return;
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.