Skip to contentSkip to conversation

libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

PATCH Applied Dario Faggioli 2 participants 2 messages Jun 7, 2013 – Jun 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

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.

---
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(+)
tools/libxl/libxl.h +18 -0
index 0bc005e..37e4d82 100644
@@ -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. */
Applied
#1 lore raw
Quoted 9 lines · Dario Faggioli

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.

Applied, thanks