From: Ian Campbell Subject: Re: [PATCH] xen/arm: gic: don't use dom0 variable in gicv_setup Date: Wed, 20 Nov 2013 09:44:22 +0000 Message-ID: <1384940662.28441.9.camel@kazak.uk.xensource.com> References: <1384883745-28844-1-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj4L6-0000P3-WE for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 09:44:53 +0000 In-Reply-To: <1384883745-28844-1-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: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, time@xen.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-11-19 at 17:55 +0000, Julien Grall wrote: > The commit 99bf30a "xen: arm: define guest virtual platform in API headers" > modifies gicv_setup to either use harcoded addresses for guest or hardware > addresses for dom0. In the latter case, the variable dom0 is not yet > initialized. dom0 receives assignment by the return of domain_create which > calls gicv_setup. > Use the ID to know whether the domain is dom0 or not. Oops, I missed this because the platform I was testing (fastmodel == vexpress) happens to have the same GIC addresses as the virtual platform. > Signed-off-by: Julien Grall Acked + applied. I investigated is_hardware_domain and friends but they relies on d->is_privileged which is also not yet set. Ian.