From: Matt Chapman Subject: ia64 event channels Date: Tue, 14 Jun 2005 14:32:43 -0600 Message-ID: <20050614203243.GA31485@kirby.fc.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is the one change we've made to architecture-independent code for event channels. Rather than polling the event channel flags on every return, we pend an interrupt in evtchn_set_pending. This might be better abstracted into some architecture-dependent header file, but I'm not sure where. We could add an asm/event.h, though it does seem a bit excessive to add a file just for one trivial hook. Matt ===== event.h 1.26 vs 1.27 ===== --- 1.26/xen/include/xen/event.h Fri Jun 3 10:42:09 2005 +++ 1.27/xen/include/xen/event.h Fri Jun 10 17:26:21 2005 @@ -34,6 +34,9 @@ { /* The VCPU pending flag must be set /after/ update to evtchn-pend. */ set_bit(0, &v->vcpu_info->evtchn_upcall_pending); +#ifdef __ia64__ + vcpu_pend_interrupt(v, s->arch.evtchn_vector); +#endif /* * NB1. 'vcpu_flags' and 'processor' must be checked /after/ update of