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] Check `global' property of the arch specific virqs.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Check `global' property of the arch specific virqs.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 May 2006 18:00:17 +0000
Delivery-date: Thu, 18 May 2006 11:01:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 3d3e5a3008f68362b97551c2a3979fa2561a02dd
# Parent  48c0f5489d44feb74d0982652072eb0cf0aed048
Check `global' property of the arch specific virqs.
Signed-off-by Kevin Tian <Kevin.tian@xxxxxxxxx>
---
 xen/common/event_channel.c   |    3 +++
 xen/include/asm-ia64/event.h |   17 +++++++++++++++++
 xen/include/asm-x86/event.h  |    6 ++++++
 3 files changed, 26 insertions(+)

diff -r 48c0f5489d44 -r 3d3e5a3008f6 xen/common/event_channel.c
--- a/xen/common/event_channel.c        Thu May 18 11:39:03 2006 +0100
+++ b/xen/common/event_channel.c        Thu May 18 16:19:18 2006 +0100
@@ -59,6 +59,9 @@ static int virq_is_global(int virq)
     case VIRQ_DEBUG:
     case VIRQ_XENOPROF:
         rc = 0;
+        break;
+    case VIRQ_ARCH_0 ... VIRQ_ARCH_7:
+        rc = arch_virq_is_global(virq);
         break;
     default:
         rc = 1;
diff -r 48c0f5489d44 -r 3d3e5a3008f6 xen/include/asm-ia64/event.h
--- a/xen/include/asm-ia64/event.h      Thu May 18 11:39:03 2006 +0100
+++ b/xen/include/asm-ia64/event.h      Thu May 18 16:19:18 2006 +0100
@@ -37,4 +37,21 @@ static inline void evtchn_notify(struct 
     (!!(v)->vcpu_info->evtchn_upcall_pending &  \
       !(v)->vcpu_info->evtchn_upcall_mask)
 
+static inline int arch_virq_is_global(int virq)
+{
+    int rc;
+
+    switch ( virq )
+    {
+    case VIRQ_ITC:
+        rc = 0;
+        break;
+    default:
+        rc = 1;
+        break;
+    }
+
+    return rc;
+}
+
 #endif
diff -r 48c0f5489d44 -r 3d3e5a3008f6 xen/include/asm-x86/event.h
--- a/xen/include/asm-x86/event.h       Thu May 18 11:39:03 2006 +0100
+++ b/xen/include/asm-x86/event.h       Thu May 18 16:19:18 2006 +0100
@@ -31,4 +31,10 @@ static inline void evtchn_notify(struct 
     (!!(v)->vcpu_info->evtchn_upcall_pending &  \
       !(v)->vcpu_info->evtchn_upcall_mask)
 
+/* No arch specific virq definition now. Default to global. */
+static inline int arch_virq_is_global(int virq)
+{
+    return 1;
+}
+
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Check `global' property of the arch specific virqs., Xen patchbot-unstable <=