From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v3] xen/arm: trap guest WFI Date: Wed, 27 Mar 2013 17:09:38 +0000 Message-ID: <515327D2.9090706@citrix.com> References: <1364309371-26854-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1364309371-26854-1-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 03/26/2013 02:49 PM, Stefano Stabellini wrote: > static inline int local_events_need_delivery(void) > { > - /* TODO > - * return (vcpu_info(v, evtchn_upcall_pending) && > - !vcpu_info(v, evtchn_upcall_mask)); */ > - return 0; > + return ( !list_empty(¤t->arch.vgic.inflight_irqs) || > + vcpu_info(current, evtchn_upcall_pending) ); > } > > int local_event_delivery_is_enabled(void); This patch breaks boot on the arndale board. I'm able to boot dom0 if inflight_irqs is replaced by pending_lr. Thanks, Julien