WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] x86: Assert in_irq() while processing guest-bound interrupts.
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Aug 2008 14:40:26 -0700
Delivery-date: Thu, 28 Aug 2008 14:40:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] x86: Assert in_irq() while processing guest-bound interrupts., Xen patchbot-3.2-testing <=