From: Wei Liu Subject: Re: [PATCH v3 04/19] libxl: introduce vNUMA types Date: Tue, 13 Jan 2015 15:51:19 +0000 Message-ID: <20150113155119.GO4226@zion.uk.xensource.com> References: <1421151107-20842-1-git-send-email-wei.liu2@citrix.com> <1421151107-20842-5-git-send-email-wei.liu2@citrix.com> <21685.15483.198775.210458@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21685.15483.198775.210458@mariner.uk.xensource.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: Ian Jackson Cc: Wei Liu , Ian Campbell , dario.faggioli@citrix.com, xen-devel@lists.xen.org, jbeulich@suse.com, Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org On Tue, Jan 13, 2015 at 03:40:43PM +0000, Ian Jackson wrote: > Wei Liu writes ("[PATCH v3 04/19] libxl: introduce vNUMA types"): > > A domain can contain several virtual NUMA nodes, hence we introduce an > > array in libxl_domain_build_info. > > > > libxl_vnode_info contains the size of memory in that node, the distance > > from that node to every nodes, the underlying pnode and a bitmap of > > vcpus. > ... > > +libxl_vnode_info = Struct("vnode_info", [ > > + ("mem", uint64), # memory size of this node, in MiB > > + ("distances", Array(uint32, "num_distances")), # distances from this node to other nodes > > + ("pnode", uint32), # physical node of this node > > + ("vcpus", libxl_bitmap), # vcpus in this node > > + ]) > > Can you please document the defaults ? It's probably tolerable to have > that in the xl documentation (only) so maybe it should go in 19/19. > There's no default values. Users have to specify every fields of this structure at the moment, otherwise libxl refuses to proceed. I have to check whether I actually coded that way, but that's the expected behaviour. I think there might be some default values when Dario finishes his work on vNUMA auto placement. But I can't say for sure. Wei. > Thanks, > Ian.