Re: [Xen-devel] [PATCH v3 12/19] hvmloader: retrieve vNUMA information from hypervisor

2015-01-13 Thread Wei Liu
On Tue, Jan 13, 2015 at 04:50:11PM +, Jan Beulich wrote: > >>> On 13.01.15 at 13:11, wrote: > > +void init_vnuma_info(void) > > +{ > > +int rc, retry = 0; > > +struct xen_vnuma_topology_info vnuma_topo; > > + > > +vcpu_to_vnode = scratch_alloc(sizeof(uint32_t) * hvm_info->nr_vcpus,

Re: [Xen-devel] [PATCH v3 12/19] hvmloader: retrieve vNUMA information from hypervisor

2015-01-13 Thread Jan Beulich
>>> On 13.01.15 at 13:11, wrote: > +void init_vnuma_info(void) > +{ > +int rc, retry = 0; > +struct xen_vnuma_topology_info vnuma_topo; > + > +vcpu_to_vnode = scratch_alloc(sizeof(uint32_t) * hvm_info->nr_vcpus, 0); sizeof(*vcpu_to_vnode) please. > +rc = -EAGAIN; > +while ( r

[Xen-devel] [PATCH v3 12/19] hvmloader: retrieve vNUMA information from hypervisor

2015-01-13 Thread Wei Liu
Hvmloader issues XENMEM_get_vnumainfo hypercall and stores the information retrieved in scratch space for later use. Signed-off-by: Wei Liu Cc: Jan Beulich --- Changes in v3: 1. Move init_vnuma_info before ACPI stuff. 2. Fix errno.h inclusion. 3. Remove upper limits and use loop. --- tools/firm