From: Stefano Stabellini Subject: Re: [PATCH v3] xen/arm: trap guest WFI Date: Wed, 27 Mar 2013 17:52:47 +0000 Message-ID: References: <1364309371-26854-1-git-send-email-stefano.stabellini@eu.citrix.com> <515327D2.9090706@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <515327D2.9090706@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: Julien Grall Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 27 Mar 2013, Julien Grall wrote: > 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, I'll send another version of the series with this change