From: Ian Jackson Subject: Re: [PATCH RFC v2 5/7] libxl/vNUMA: VM config parsing functions Date: Fri, 11 Oct 2013 12:18:24 +0100 Message-ID: <21079.56960.505407.925318@mariner.uk.xensource.com> References: <1379062224-13894-1-git-send-email-ufimtseva@gmail.com> <1381394293.4389.81.camel@Abyss> <1381440720.4389.90.camel@Abyss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1381440720.4389.90.camel@Abyss> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Ian Campbell , Li Yechen , George Dunlap , Stefano Stabellini , "xen-devel@lists.xen.org" , Elena Ufimtseva , sw@linux.com List-Id: xen-devel@lists.xenproject.org Dario Faggioli writes ("Re: [Xen-devel] [PATCH RFC v2 5/7] libxl/vNUMA: VM config parsing functions"): > On gio, 2013-10-10 at 12:25 -0400, Elena Ufimtseva wrote: > > 3) if vdistance number of elements = vnodes * vnodes, take as it is. > > Sure. I have some qualms about this: Aren't there some constraints that need to be imposed ? For example, distance[X,Y]==distance[Y,X] ? What about the triangle inequality (distance[A,B] + distance[B,C] >= distance[A,C]) ? Do we really want/need to allow the specification of any arbitrary distance matrix (subject perhaps to such constraints) ? If we do need this I think the nested lists are probably a better syntax for specifying the whole array. That would also more easily allow the user to specify only half of the symmetric matrix, and make it syntactically clearer what's intended. Ian.