# HG changeset patch
# User Adin Scannell <adin@xxxxxxxxxxxxxxx>
# Date 1317306364 -3600
# Node ID 145e146876b33d783e18a8ac5ebb8180f40d1720
# Parent 7998217630e236639825d4db174c852cfa18e709
libxl: Expose number of shared pages
Signed-off-by: Adin Scannell <adin@xxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
diff -r 7998217630e2 -r 145e146876b3 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Wed Sep 28 16:42:11 2011 +0100
+++ b/tools/libxl/libxl.c Thu Sep 29 15:26:04 2011 +0100
@@ -355,6 +355,7 @@
xlinfo->shutdown_reason = ~0;
xlinfo->current_memkb = PAGE_TO_MEMKB(xcinfo->tot_pages);
+ xlinfo->shared_memkb = PAGE_TO_MEMKB(xcinfo->shr_pages);
xlinfo->max_memkb = PAGE_TO_MEMKB(xcinfo->max_pages);
xlinfo->cpu_time = xcinfo->cpu_time;
xlinfo->vcpu_max_id = xcinfo->max_vcpu_id;
diff -r 7998217630e2 -r 145e146876b3 tools/libxl/libxl.idl
--- a/tools/libxl/libxl.idl Wed Sep 28 16:42:11 2011 +0100
+++ b/tools/libxl/libxl.idl Thu Sep 29 15:26:04 2011 +0100
@@ -102,6 +102,7 @@
Otherwise set to a value guaranteed not to clash with any valid
SHUTDOWN_* constant."""),
("current_memkb", uint64),
+ ("shared_memkb", uint64),
("max_memkb", uint64),
("cpu_time", uint64),
("vcpu_max_id", uint32),
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|