tools/libxl: Fix libxl_list_vcpu() following c/s 93e52d52
PATCH 1/1 tools/libxl: Fix libxl_list_vcpu() following c/s 93e52d52
My reasoning regarding nr_cpus_out was wrong, as I had confused nr_cpus_out with nr_vcpus_out.
Dario pointed this out, but the patch (having gained appropriate acks) got committed before I could post a correction.
--- tools/libxl/libxl.c | 1 + 1 file changed, 1 insertion(+)
tools/libxl/libxl.c +1 -0
@@ -5252,6 +5252,7 @@ libxl_vcpuinfo *libxl_list_vcpu(libxl_ctx *ctx, uint32_t domid,return NULL ; } + *nr_cpus_out =libxl_get_max_cpus (ctx); ret = ptr =libxl__calloc (NOGC , domaininfo.max_vcpu_id +1 ,sizeof (libxl_vcpuinfo));
Signature · 1 line
1.7.10.4
Quoted 6 lines · Andrew Cooper
My reasoning regarding
nr_cpus_outwas wrong, as I had confusednr_cpus_outwithnr_vcpus_out.Dario pointed this out, but the patch (having gained appropriate acks) got committed before I could post a correction.
:-)
Quoted 6 lines
Noticed-by Dario Faggioli <[email protected]>Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>CC Wei Liu <[email protected]>
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 9 lines · Dario Faggioli
Quoted 6 lines · Andrew Cooper
My reasoning regarding
nr_cpus_outwas wrong, as I had confusednr_cpus_outwithnr_vcpus_out.Dario pointed this out, but the patch (having gained appropriate acks) got committed before I could post a correction.
:-)
Quoted 7 lines
Quoted 6 lines
Noticed-by Dario Faggioli <[email protected]>Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>CC Wei Liu <[email protected]>Reviewed-by Dario Faggioli <[email protected]>
Acked + applied.
Quoted 4 lines
Regards,
Dario