|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Check `global' property of the arch specific virqs.
# 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 <=
|
|
|
|
|