* [PATCH v9 2/2] tools: XENMEM_claim_pages (subop of existing) hypercall
@ 2013-01-03 18:15 Dan Magenheimer
0 siblings, 0 replies; only message in thread
From: Dan Magenheimer @ 2013-01-03 18:15 UTC (permalink / raw)
To: Jan Beulich, Keir Fraser, TimDeegan, Ian Campbell
Cc: Andres Lagar-Cavilla, Zhigang Wang, Matthew Daley, Konrad Wilk,
xen-devel
[-- Attachment #1: Type: text/plain, Size: 1765 bytes --]
This is patch 2of2 of a ninth 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->v9:
- no change in this patch (only in patch 1of2)
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
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 4b82884..3bc0976 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 32122fd..ba30ba6 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;
[-- Attachment #2: claim-130102-tools.patch --]
[-- Type: application/octet-stream, Size: 1140 bytes --]
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index 4b82884..3bc0976 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 32122fd..ba30ba6 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;
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-03 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 18:15 [PATCH v9 2/2] tools: XENMEM_claim_pages (subop of existing) hypercall Dan Magenheimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).