This will allow userspace to reason with the total number of CPUs, not
just the current number of online CPUs.
# 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 <andrew.cooper3@citrix.com>
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);