From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH for-4.6 4/4] xen/arm: Find automatically a PPI for the DOM0 event channel interrupt Date: Fri, 12 Dec 2014 17:00:29 +0000 Message-ID: <548B1F2D.9000209@linaro.org> References: <1418395392-30460-1-git-send-email-julien.grall@linaro.org> <1418395392-30460-5-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XzTa0-00024F-64 for xen-devel@lists.xenproject.org; Fri, 12 Dec 2014 17:00:36 +0000 Received: by mail-wi0-f170.google.com with SMTP id bs8so5101574wib.1 for ; Fri, 12 Dec 2014 09:00:34 -0800 (PST) In-Reply-To: <1418395392-30460-5-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: christoffer.dall@linaro.org, stefano.stabellini@citrix.com, tim@xen.org, ian.campbell@citrix.com, parth.dixit@linaro.org List-Id: xen-devel@lists.xenproject.org On 12/12/14 14:43, Julien Grall wrote: > diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c > index 7221bc8..7d14377 100644 > --- a/xen/arch/arm/domain.c > +++ b/xen/arch/arm/domain.c > @@ -543,10 +543,17 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags) > if ( (rc = domain_vtimer_init(d)) != 0 ) > goto fail; > > - if ( d->domain_id ) > + /* > + * The hardware domain will get a PPI later in > + * arch/arm/domain_build.c depending on the > + * interrupt map of the hardware. > + */ > + if ( !is_hardware_domain(d) ) > + { > d->arch.evtchn_irq = GUEST_EVTCHN_PPI; > - else > - d->arch.evtchn_irq = platform_dom0_evtchn_ppi(); > + /* At this stage vgic_reserve_virq should never fail */ > + BUG_ON(vgic_reserve_virq(d, GUEST_EVTCHN_PPI)); I forgot the "!" in the BUG_ON. This line should be: BUG_ON(!..) -- Julien Grall