Skip to contentSkip to conversation

tools: XENMEM_claim_pages (subop of existing) hypercall

PATCH Superseded Dan Magenheimer 1 participant 1 message Nov 20, 2012

v6 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 2/2 tools: XENMEM_claim_pages (subop of existing) hypercall

This is patch 2of2 of a sixth cut of the patch of the proposed XENMEM_claim_pages hypercall/subop, taking into account feedback from Jan and Keir and IanC and Matthew Daley.

As requested by Jan, this is a separate post of the tools part of the patch. NOTE: This patch must be applied after the hypervisor part of the patchset or otherwise may break the build!

v5->v6:
- no change in this patch (only in patch 1of2)

Thanks for any feedback!

 xc_domain.c |    1 +
 xenctrl.h   |    1 +
 2 files changed, 2 insertions(+)
tools/libxc/xc_domain.c +1 -0
index d98e68b..6d06f7c 100644
@@ -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);
tools/libxc/xenctrl.h +1 -0
index 7eb5743..325f4a3 100644
@@ -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;
tools/libxc/xc_domain.c +1 -0
index d98e68b..6d06f7c 100644
@@ -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);
tools/libxc/xenctrl.h +1 -0
index 7eb5743..325f4a3 100644
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel