mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: claim: Print the values in 'xl info' unconditionally
During the review of "libxl: Change claim_mode from bool to int." Ian Campbell suggested that the xl info should print the claim information irregardless of the global claim_mode value. Suggested-by: Ian Campbell <Ian.Campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
This commit is contained in:
1 parent
93b241e9d2
commit
6a0a079a93
1 file changed
+1
-6
@@ -4603,13 +4603,8 @@ static void output_physinfo(void)
|
||||
printf("free_memory : %"PRIu64"\n", (info.free_pages - info.outstanding_pages) / i);
|
||||
printf("sharing_freed_memory : %"PRIu64"\n", info.sharing_freed_pages / i);
|
||||
printf("sharing_used_memory : %"PRIu64"\n", info.sharing_used_frames / i);
|
||||
}
|
||||
/*
|
||||
* Only if enabled (claim_mode=1) or there are outstanding claims.
|
||||
*/
|
||||
if (claim_mode || info.outstanding_pages)
|
||||
printf("outstanding_claims : %"PRIu64"\n", info.outstanding_pages / i);
|
||||
|
||||
}
|
||||
if (!libxl_get_freecpus(ctx, &cpumap)) {
|
||||
libxl_for_each_bit(i, cpumap)
|
||||
if (libxl_bitmap_test(&cpumap, i))
|
||||
|
||||