[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Make event_pending() architecture-specific.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 4c8311699685c0925fbd4415812a23ba4bffc66b
# Parent  c783f340bef82223eb5fcd88093fd919f41790b6
Make event_pending() architecture-specific.
PowerPC needs this because the domain can directly modify the hardware's
"interrupts enabled" bit, and we don't want to patch Linux to replace
all those accesses to use evtchn_upcall_mask instead.

Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>

diff -r c783f340bef8 -r 4c8311699685 xen/include/asm-ia64/event.h
--- a/xen/include/asm-ia64/event.h      Tue Apr 11 08:58:04 2006
+++ b/xen/include/asm-ia64/event.h      Tue Apr 11 09:40:03 2006
@@ -32,4 +32,9 @@
        vcpu_pend_interrupt(v, v->vcpu_info->arch.evtchn_vector);
 }
 
+/* Note: Bitwise operations result in fast code with no branches. */
+#define event_pending(v)                        \
+    (!!(v)->vcpu_info->evtchn_upcall_pending &  \
+      !(v)->vcpu_info->evtchn_upcall_mask)
+
 #endif
diff -r c783f340bef8 -r 4c8311699685 xen/include/asm-x86/event.h
--- a/xen/include/asm-x86/event.h       Tue Apr 11 08:58:04 2006
+++ b/xen/include/asm-x86/event.h       Tue Apr 11 09:40:03 2006
@@ -26,4 +26,9 @@
         smp_send_event_check_cpu(v->processor);
 }
 
+/* Note: Bitwise operations result in fast code with no branches. */
+#define event_pending(v)                        \
+    (!!(v)->vcpu_info->evtchn_upcall_pending &  \
+      !(v)->vcpu_info->evtchn_upcall_mask)
+
 #endif
diff -r c783f340bef8 -r 4c8311699685 xen/include/xen/event.h
--- a/xen/include/xen/event.h   Tue Apr 11 08:58:04 2006
+++ b/xen/include/xen/event.h   Tue Apr 11 09:40:03 2006
@@ -38,11 +38,6 @@
  */
 extern void send_guest_pirq(struct domain *d, int pirq);
 
-/* Note: Bitwise operations result in fast code with no branches. */
-#define event_pending(v)                        \
-    (!!(v)->vcpu_info->evtchn_upcall_pending &  \
-      !(v)->vcpu_info->evtchn_upcall_mask)
-
 #define evtchn_pending(d, p)                    \
     (test_bit((p), &(d)->shared_info->evtchn_pending[0]))
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.