From: Konrad Rzeszutek Wilk Subject: [PATCH 4/6] xc: XENMEM_claim_pages claimed but not possesed value. Date: Mon, 4 Mar 2013 12:47:12 -0500 Message-ID: <1362419234-29446-5-git-send-email-konrad.wilk@oracle.com> References: <1362419234-29446-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1362419234-29446-1-git-send-email-konrad.wilk@oracle.com> 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, keir@xen.org, keir.xen@gmail.com Cc: dan.magenheimer@oracle.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org From: Dan Magenheimer This is patch provides the value of claimed pages but not yet accounted for in a domain. This is a total global value that influences the hypervisors' MM system. This value - when the guest has finally been created and is running - ends up having the value zero. But during the memory populate calls the contents of this value will decrease. Signed-off-by: Dan Magenheimer Signed-off-by: Konrad Rzeszutek Wilk --- tools/libxc/xc_domain.c | 1 + tools/libxc/xenctrl.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index af7ef66..6aefde9 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -234,6 +234,7 @@ int xc_domain_getinfo(xc_interface *xch, info->ssidref = domctl.u.getdomaininfo.ssidref; info->nr_pages = domctl.u.getdomaininfo.tot_pages; + info->nr_unclaimed_pages = domctl.u.getdomaininfo.unclaimed_pages; info->nr_shared_pages = domctl.u.getdomaininfo.shr_pages; info->nr_paged_pages = domctl.u.getdomaininfo.paged_pages; info->max_memkb = domctl.u.getdomaininfo.max_pages << (PAGE_SHIFT-10); diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 1683cf1..ba1fa14 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -364,6 +364,7 @@ typedef struct xc_dominfo { hvm:1, debugged:1; unsigned int shutdown_reason; /* only meaningful if shutdown==1 */ unsigned long nr_pages; /* current number, not maximum */ + unsigned long nr_unclaimed_pages; unsigned long nr_shared_pages; unsigned long nr_paged_pages; unsigned long shared_info_frame; -- 1.8.0.2