From: Ian Jackson Subject: Re: [PATCH v5 p2 16/19] tools/libxl: arm: Use an higher value for the GIC phandle Date: Thu, 9 Apr 2015 17:52:02 +0100 Message-ID: <21798.44594.785262.371575@mariner.uk.xensource.com> References: <1428592185-18581-1-git-send-email-julien.grall@citrix.com> <1428592185-18581-17-git-send-email-julien.grall@citrix.com> <21798.42495.633318.607315@mariner.uk.xensource.com> <5526A9ED.2000803@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YgFgp-0000GG-FF for xen-devel@lists.xenproject.org; Thu, 09 Apr 2015 16:52:27 +0000 In-Reply-To: <5526A9ED.2000803@gmail.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: Wei Liu , ian.campbell@citrix.com, Julien Grall , tim@xen.org, Julien Grall , stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Julien Grall writes ("Re: [Xen-devel] [PATCH v5 p2 16/19] tools/libxl: arm: Use an higher value for the GIC phandle"): > On 09/04/15 17:17, Ian Jackson wrote: > > I have to say I have no idea what a phandle is... > > A phandle is a way to reference another node in the device tree. > Any node that can referenced defines a phandle property with a unique > unsigned 32 bit value. Thanks for the explanation. > >> Reserve the ID 65000 for the GIC phandle. I think we can safely assume > >> that the partial device tree will never contain a such ID. > > > > Do we control the DT compiler ? What if it should change its > > phandle allocation algorithm ? > > We don't control the DT compiler. But the algorithm of the phandle will > unlikely change. FWIW, the compiler is very tiny, it's not GCC. Right. > I only expect people using the partial device tree in very specific use > case. Generic use case is not even possible with the current status of > non-PCI (i.e device tree) passthrough. So people control their environment. > > As I said later in patch, supporting dynamic allocation will require > some rework in the device tree creation for the guest. > > So I was suggesting this solution as temporary in order to not block the > DT passthrough. What would happen if our assumption about the DT compiler were violated ? Ian.