Skip to contentSkip to conversation

tools/libxl: Fix libxl_list_vcpu() following c/s 93e52d52

PATCH In review Andrew Cooper 3 participants 3 messages Oct 23, 2014

lore
Share & tools
lore
#0 lore raw

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
index ee127d8..18561fb 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andrew Cooper

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.

:-)

Quoted 6 lines

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

#2 lore raw
Quoted 9 lines · Dario Faggioli
Quoted 6 lines · Andrew Cooper

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.

:-)

Quoted 7 lines
Quoted 6 lines

Acked + applied.

Quoted 4 lines

Regards,
Dario