ia64/xen-unstable

changeset 18388:2986c11b7edf

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@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 27 10:11:33 2008 +0100 (2008-08-27)
parents c3f73c6f2266
children 2eefc8294358
files xen/arch/x86/irq.c
line diff
     1.1 --- a/xen/arch/x86/irq.c	Wed Aug 27 09:57:53 2008 +0100
     1.2 +++ b/xen/arch/x86/irq.c	Wed Aug 27 10:11:33 2008 +0100
     1.3 @@ -63,7 +63,9 @@ asmlinkage void do_IRQ(struct cpu_user_r
     1.4  
     1.5      if ( likely(desc->status & IRQ_GUEST) )
     1.6      {
     1.7 +        irq_enter();
     1.8          __do_IRQ_guest(vector);
     1.9 +        irq_exit();
    1.10          spin_unlock(&desc->lock);
    1.11          return;
    1.12      }