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
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
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