: xl: Fix xl vcpu-list output on machines with more than 16 cores
PATCH 2/2 : xl: Fix xl vcpu-list output on machines with more than 16 cores
Signed-off-by Andre Przywara <[email protected]>
Signature · 3 lines
Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12
commit 28e6203e49e733d0777ed22b96763a58b9f8f16d
Author: Andre Przywara <[email protected]> Date: Tue Aug 10 15:48:46 2010 +0200
xl: Fix xl vcpu-list output on machines with more than 16 cores
Signed-off-by Andre Przywara <[email protected]>
tools/libxl/xl_cmdimpl.c +1 -1
@@ -3201,7 +3201,7 @@ static void print_vcpuinfo(uint32_t tdomid,/* TIM */ printf ("%9.1f " , ((float )vcpuinfo->vcpu_time /1e9 ));/* CPU AFFINITY */ - pcpumap = nr_cpus >64 ?-1 : ((1 << nr_cpus) -1 ); + pcpumap = nr_cpus >64 ? (uint64_t )-1 : ((1ULL << nr_cpus) -1 );for (cpumap = vcpuinfo->cpumap; nr_cpus; ++cpumap) {if (*cpumap < pcpumap) {break ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Stefano Stabellini
AppliedQuoted 2 lines · Andre Przywara
Signed-off-by Andre Przywara <[email protected]>
applied, thanks