From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: xl: expose max_cpu_id from `xl info` Date: Tue, 13 Mar 2012 16:52:25 +0000 Message-ID: <4F5F7B49.9040001@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080608070208090501010702" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org --------------080608070208090501010702 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit This will allow userspace to reason with the total number of CPUs, not just the current number of online CPUs. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com --------------080608070208090501010702 Content-Type: text/x-patch; name="xl-info-max_cpu_id.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xl-info-max_cpu_id.patch" # HG changeset patch # Parent 5d20d2f6ffed0a49f030f04a8870f1926babbcbf xl: display max_cpu_ids for xl info Expose "max_cpu_id" in stdout from `xl info` Signed-off-by: Andrew Cooper diff -r 5d20d2f6ffed tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -3734,6 +3734,7 @@ static void output_physinfo(void) } printf("nr_cpus : %d\n", info.nr_cpus); + printf("max_cpu_id : %d\n", info.max_cpu_id); printf("nr_nodes : %d\n", info.nr_nodes); printf("cores_per_socket : %d\n", info.cores_per_socket); printf("threads_per_core : %d\n", info.threads_per_core); --------------080608070208090501010702 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.xen.org http://lists.xen.org/xen-devel --------------080608070208090501010702--