Re: [Xen-devel] [PATCH v4 08/21] libxl: functions to build vmemranges for PV guest

2015-01-28 Thread Wei Liu
On Wed, Jan 28, 2015 at 04:27:29PM +, Ian Campbell wrote: > On Fri, 2015-01-23 at 11:13 +, Wei Liu wrote: > > +/* Generate one vmemrange for each virtual node. */ > > +next = 0; > > +for (i = 0; i < b_info->num_vnuma_nodes; i++) { > > +libxl_vnode_info *p = &b_info->vnum

Re: [Xen-devel] [PATCH v4 08/21] libxl: functions to build vmemranges for PV guest

2015-01-28 Thread Ian Campbell
On Fri, 2015-01-23 at 11:13 +, Wei Liu wrote: > +/* Generate one vmemrange for each virtual node. */ > +next = 0; > +for (i = 0; i < b_info->num_vnuma_nodes; i++) { > +libxl_vnode_info *p = &b_info->vnuma_nodes[i]; > + > +GCREALLOC_ARRAY(v, i+1); Can we not just all

[Xen-devel] [PATCH v4 08/21] libxl: functions to build vmemranges for PV guest

2015-01-23 Thread Wei Liu
Introduce a arch-independent routine to generate one vmemrange per vnode. Also introduce arch-dependent routines for different architectures because part of the process is arch-specific -- ARM has yet have NUMA support and E820 is x86 only. For those x86 guests who care about machine E820 map (i.e