* [PATCH v2] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb
@ 2013-06-07 16:14 Dario Faggioli
2013-06-12 9:44 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Dario Faggioli @ 2013-06-07 16:14 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Campbell, George Dunlap, Jim Fehlig, Konrad Rzeszutek Wilk
Commits d0782481 ("xl: export 'outstanding_pages' value from xcinfo")
and bec8f17e ("xen: Remove the XENMEM_get_oustanding_pages and provide
the data via xc_phys_info") added these two fields in libxl_physinfo
and in libxl_dominfo, respectively, but did not include the needed
LIBXL_HAVE_<foo> runes. Adding them.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
---
Changes from v1:
* updated changelog with the summary of the referenced commits
* updated the code comments as requested during review
---
tools/libxl/libxl.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
index 0bc005e..37e4d82 100644
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -318,6 +318,24 @@
#define LIBXL_HAVE_NONCONST_EVENT_OCCURS_EVENT_ARG 1
#endif
+/*
+ * LIBXL_HAVE_PHYSINFO_OUTSTANDING_PAGES
+ *
+ * If this is defined, libxl_physinfo structure will contain an uint64 field
+ * called outstanding_pages, containing the number of pages claimed but not
+ * yet allocated for all domains.
+ */
+#define LIBXL_HAVE_PHYSINFO_OUTSTANDING_PAGES 1
+
+/*
+ * LIBXL_HAVE_DOMINFO_OUTSTANDING_MEMKB 1
+ *
+ * If this is defined, libxl_dominfo will contain a MemKB type field called
+ * outstanding_memkb, containing the amount of claimed but not yet allocated
+ * memory for a specific domain.
+ */
+#define LIBXL_HAVE_DOMINFO_OUTSTANDING_MEMKB 1
+
/* Functions annotated with LIBXL_EXTERNAL_CALLERS_ONLY may not be
* called from within libxl itself. Callers outside libxl, who
* do not #include libxl_internal.h, are fine. */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb
2013-06-07 16:14 [PATCH v2] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb Dario Faggioli
@ 2013-06-12 9:44 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2013-06-12 9:44 UTC (permalink / raw)
To: Dario Faggioli
Cc: George Dunlap, Jim Fehlig, Konrad Rzeszutek Wilk, xen-devel
On Fri, 2013-06-07 at 18:14 +0200, Dario Faggioli wrote:
> Commits d0782481 ("xl: export 'outstanding_pages' value from xcinfo")
> and bec8f17e ("xen: Remove the XENMEM_get_oustanding_pages and provide
> the data via xc_phys_info") added these two fields in libxl_physinfo
> and in libxl_dominfo, respectively, but did not include the needed
> LIBXL_HAVE_<foo> runes. Adding them.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-12 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 16:14 [PATCH v2] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb Dario Faggioli
2013-06-12 9:44 ` Ian Campbell
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).