From: Keir Fraser Date: Wed, 27 Aug 2008 09:11:33 +0000 (+0100) Subject: x86: Assert in_irq() while processing guest-bound interrupts. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14113^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bb2f3a7002b255a73f7afa8f62609197f51fe26b;p=xen.git 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 --- diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index a9fa6ddf76..52a08d4645 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -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; }