From: Matt Chapman Subject: Re: [PATCH] ia64 event channels Date: Wed, 15 Jun 2005 13:29:07 -0600 Message-ID: <20050615192907.GA23876@kirby.fc.hp.com> References: <20050614203243.GA31485@kirby.fc.hp.com> <42AF578C.6030105@intel.com> <20050615005047.GA10419@kirby.fc.hp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G" Return-path: Content-Disposition: inline In-Reply-To: <20050615005047.GA10419@kirby.fc.hp.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Arun Sharma , "Ling, Xiaofeng" , xen-devel List-Id: xen-devel@lists.xenproject.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This patch adds an architecture-specific hook function for event delivery, which does any necessary actions to notify the recipient, e.g. pending an IRQ. We plan to use this on IA64, I imagine it will be useful for VT-x domains as well. Thanks, Matt Signed-off-by: Matthew Chapman --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="event2.patch" diff -Nru a/xen/include/asm-ia64/event.h b/xen/include/asm-ia64/event.h --- /dev/null Wed Dec 31 16:00:00 1969 +++ b/xen/include/asm-ia64/event.h Wed Jun 15 13:24:58 2005 @@ -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 -Nru a/xen/include/asm-x86/event.h b/xen/include/asm-x86/event.h --- /dev/null Wed Dec 31 16:00:00 1969 +++ b/xen/include/asm-x86/event.h Wed Jun 15 13:24:58 2005 @@ -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 -Nru a/xen/include/xen/event.h b/xen/include/xen/event.h --- a/xen/include/xen/event.h Wed Jun 15 13:24:58 2005 +++ b/xen/include/xen/event.h Wed Jun 15 13:24:58 2005 @@ -13,6 +13,7 @@ #include #include #include +#include /* * EVENT-CHANNEL NOTIFICATIONS @@ -34,6 +35,7 @@ { /* 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 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --k1lZvvs/B4yU6o8G--