diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-08-13 09:00:48 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-08-13 09:00:48 +0100 |
commit | 73e1f057e03e420fb5b0a55933739707112d4267 (patch) | |
tree | 77ac9d6e13db1e72b1656f3fbf64343e4cd17bdc | |
parent | 0787f6e6e7437d4011812b2889d89f2d0609e4b2 (diff) | |
download | xen-73e1f057e03e420fb5b0a55933739707112d4267.tar.gz xen-73e1f057e03e420fb5b0a55933739707112d4267.tar.bz2 xen-73e1f057e03e420fb5b0a55933739707112d4267.zip |
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>
xen-unstable changeset: cb71d0d30f0c
xen-unstable date: Tue Aug 10 15:35:13 2010 +0100
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 61cbf5e7ab..5e30d344ba 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2718,7 +2718,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; |