From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 2 of 2] libxl: publish number of shared and paged pages Date: Mon, 12 Mar 2012 15:53:28 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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.xen.org Cc: ian.campbell@citrix.com, andres@gridcentric.ca, tim@xen.org, keir.xen@gmail.com, JBeulich@suse.com, ian.jackson@citrix.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org tools/libxl/libxl.c | 3 ++- tools/libxl/libxl_types.idl | 1 + 2 files changed, 3 insertions(+), 1 deletions(-) This is information is currently not harvested from libxc. Signed-off-by: Andres Lagar-Cavilla diff -r 94ec84eeca5d -r a17bd526989d tools/libxl/libxl.c --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -459,7 +459,8 @@ static void xcinfo2xlinfo(const xc_domai xlinfo->shutdown_reason = ~0; xlinfo->current_memkb = PAGE_TO_MEMKB(xcinfo->tot_pages); - /* xlinfo->shared_memkb = PAGE_TO_MEMKB(xcinfo->shr_pages); */ + xlinfo->shared_memkb = PAGE_TO_MEMKB(xcinfo->shr_pages); + xlinfo->paged_memkb = PAGE_TO_MEMKB(xcinfo->paged_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 94ec84eeca5d -r a17bd526989d tools/libxl/libxl_types.idl --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -175,6 +175,7 @@ libxl_dominfo = Struct("dominfo",[ ("shutdown_reason", libxl_shutdown_reason), ("current_memkb", MemKB), ("shared_memkb", MemKB), + ("paged_memkb", MemKB), ("max_memkb", MemKB), ("cpu_time", uint64), ("vcpu_max_id", uint32),