From: Chen Baozi Subject: Re: [PATCH V4 5/8] tools/libxl: Set 'reg' of cpu node equal to MPIDR affinity for domU Date: Sat, 30 May 2015 10:08:21 +0800 Message-ID: <20150530020821.GB15126@cbz-thinkpad> References: <1432808109-31466-1-git-send-email-cbz@baozis.org> <1432808109-31466-6-git-send-email-cbz@baozis.org> <55688958.2090507@citrix.com> <1432914920.15036.65.camel@citrix.com> <55688EE8.8030200@citrix.com> 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 1YyWBu-0007Mi-71 for xen-devel@lists.xenproject.org; Sat, 30 May 2015 02:08:02 +0000 Content-Disposition: inline In-Reply-To: <55688EE8.8030200@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.xenproject.org, Ian Campbell List-Id: xen-devel@lists.xenproject.org Hi Julien, On Fri, May 29, 2015 at 05:08:08PM +0100, Julien Grall wrote: > On 29/05/15 16:55, Ian Campbell wrote: > > On Fri, 2015-05-29 at 16:44 +0100, Julien Grall wrote: > > > >>> + name = GCSPRINTF("cpu@%lx", mpidr_aff); > >> > >> It's not necessary to change the cpu@. > > > > AIUI it is conventional in DT for this to match the first reg entry. > > Well, it's conventional when the reg field is containing an address. > > It's not the case of the cpu node as "reg" doesn't contain an address. > There is a mix of both in the different DTS. > > Although, increment an ID make easier to read the dumped DTS for debugging. I did the change because it would be more friendly for user to read the cpu node in /proc/device-tree/. Because the number is no longer continuous when we have a guest more than 16 cpus. In that case, the cpu nodes will be looked like as the following: cpu@0, cpu@1, ..., cpu@15, cpu@256, cpu@257, ..., cpu@271, cpu@512, ... Considering changing to the new form doesn't introduce new risk (and follows the convention to a certain degree), I prefer the new way. Cheers, Baozi.