From dc1a6a5f30f03613da5608b0895fe6ee3f056358 Mon Sep 17 00:00:00 2001 From: "djm@kirby.fc.hp.com" Date: Thu, 16 Jun 2005 19:28:44 +0000 Subject: bitkeeper revision 1.1709.1.16 (42b1d2ecGSNeZhThHshE903eA1tK-Q) Add arch-dep notification hook (per discussion on xen-devel) needed for ia64 and VTi/x. Signed-off-by: Matt Chapman --- .rootkeys | 2 ++ xen/include/asm-ia64/event.h | 16 ++++++++++++++++ xen/include/asm-x86/event.h | 16 ++++++++++++++++ xen/include/xen/event.h | 2 ++ 4 files changed, 36 insertions(+) create mode 100644 xen/include/asm-ia64/event.h create mode 100644 xen/include/asm-x86/event.h diff --git a/.rootkeys b/.rootkeys index 0c1811d38e..c50bc50a0d 100644 --- a/.rootkeys +++ b/.rootkeys @@ -1359,6 +1359,7 @@ 421098b6ZcIrn_gdqjUtdJyCE0YkZQ xen/include/asm-ia64/debugger.h 421098b6z0zSuW1rcSJK1gR8RUi-fw xen/include/asm-ia64/dom_fw.h 421098b6Nn0I7hGB8Mkd1Cis0KMkhA xen/include/asm-ia64/domain.h +42b1d2d0rkNCmG2nFOnL-OfhJG9mDw xen/include/asm-ia64/event.h 4241e880hAyo_dk0PPDYj3LsMIvf-Q xen/include/asm-ia64/flushtlb.h 421098b6X3Fs2yht42TE2ufgKqt2Fw xen/include/asm-ia64/ia64_int.h 421098b7psFAn8kbeR-vcRCdc860Vw xen/include/asm-ia64/init.h @@ -1406,6 +1407,7 @@ 40715b2dTokMLYGSuD58BnxOqyWVew xen/include/asm-x86/div64.h 4204e7acwzqgXyTAPKa1nM-L7Ec0Qw xen/include/asm-x86/domain.h 41d3eaaeIBzW621S1oa0c2yk7X43qQ xen/include/asm-x86/e820.h +42b1d2caFkOByU5n4LuMnT05f3kJFg xen/include/asm-x86/event.h 3ddb79c3NU8Zy40OTrq3D-i30Y3t4A xen/include/asm-x86/fixmap.h 3e2d29944GI24gf7vOP_7x8EyuqxeA xen/include/asm-x86/flushtlb.h 4294b5eep4lWuDtYUR74gYwt-_FnHA xen/include/asm-x86/genapic.h diff --git a/xen/include/asm-ia64/event.h b/xen/include/asm-ia64/event.h new file mode 100644 index 0000000000..e7b5cda8b1 --- /dev/null +++ b/xen/include/asm-ia64/event.h @@ -0,0 +1,16 @@ +/****************************************************************************** + * event.h + * + * A nice interface for passing asynchronous events to guest OSes. + * (architecture-dependent part) + * + */ + +#ifndef __ASM_EVENT_H__ +#define __ASM_EVENT_H__ + +static inline void evtchn_notify(struct vcpu *v) +{ +} + +#endif diff --git a/xen/include/asm-x86/event.h b/xen/include/asm-x86/event.h new file mode 100644 index 0000000000..e7b5cda8b1 --- /dev/null +++ b/xen/include/asm-x86/event.h @@ -0,0 +1,16 @@ +/****************************************************************************** + * event.h + * + * A nice interface for passing asynchronous events to guest OSes. + * (architecture-dependent part) + * + */ + +#ifndef __ASM_EVENT_H__ +#define __ASM_EVENT_H__ + +static inline void evtchn_notify(struct vcpu *v) +{ +} + +#endif diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h index 734427266b..05683344ca 100644 --- a/xen/include/xen/event.h +++ b/xen/include/xen/event.h @@ -13,6 +13,7 @@ #include #include #include +#include /* * EVENT-CHANNEL NOTIFICATIONS @@ -34,6 +35,7 @@ static inline void evtchn_set_pending(struct vcpu *v, int port) { /* The VCPU pending flag must be set /after/ update to evtchn-pend. */ set_bit(0, &v->vcpu_info->evtchn_upcall_pending); + evtchn_notify(v); /* * NB1. 'vcpu_flags' and 'processor' must be checked /after/ update of -- cgit v1.2.3