x86: Assert in_irq() while processing guest-bound interrupts.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Aug 2008 09:11:33 +0000 (10:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Aug 2008 09:11:33 +0000 (10:11 +0100)
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@citrix.com>
xen/arch/x86/irq.c

index a9fa6ddf76daeceb629c985e8ceddb0205365326..52a08d4645efb708b4b42c63fbb1b77a8f5f3480 100644 (file)
@@ -63,7 +63,9 @@ asmlinkage void do_IRQ(struct cpu_user_regs *regs)
 
     if ( likely(desc->status & IRQ_GUEST) )
     {
+        irq_enter();
         __do_IRQ_guest(vector);
+        irq_exit();
         spin_unlock(&desc->lock);
         return;
     }