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

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



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219920516 -3600
# Node ID 05d3828febb4f4908034fa1d965c5e66e4c654c5
# Parent  12bcbebc3acf6240e3b7bab605b172d2b1cd7924
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-unstable changeset:   18377:2986c11b7edf4b1242cace49e1b317a10560eada
xen-unstable date:        Wed Aug 27 10:11:33 2008 +0100
---
 xen/arch/x86/irq.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 12bcbebc3acf -r 05d3828febb4 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Fri Aug 22 14:30:46 2008 +0100
+++ b/xen/arch/x86/irq.c        Thu Aug 28 11:48:36 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®.