mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xl: Fix xl vcpu-list output on machines with more than 16 cores
Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
2386f0ac18
commit
d5caa669da
1 file changed
+1
-1
@@ -3213,7 +3213,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;
|
||||
|
||||