From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH 2/2]: xl: Fix xl vcpu-list output on machines with more than 16 cores Date: Tue, 10 Aug 2010 15:54:40 +0200 Message-ID: <4C615A20.6070500@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040304000505020400070105" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Stefano Stabellini Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --------------040304000505020400070105 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Signed-off-by: Andre Przywara -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12 --------------040304000505020400070105 Content-Type: text/x-patch; name="xl_vcpu_list_2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xl_vcpu_list_2.patch" commit 28e6203e49e733d0777ed22b96763a58b9f8f16d Author: Andre Przywara 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 diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index e0bdf0c..7fee1ca 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -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; --------------040304000505020400070105 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040304000505020400070105--