Skip to contentSkip to conversation

LIBXL_HAVE_<xxx> for claim related visible fields

PATCH New Dario Faggioli 4 participants 9 messages Jun 6, 2013 – Jun 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LIBXL_HAVE_<xxx> for claim related visible fields

Hi,

This small and pretty trivial patch adds the LIBXL_HAVE_<foo> symbols we decided we want whenever adding something to the API, for two fields related to the claim mechanism that are part of user visible structs.

So, Konrad, can you please check the comments and see whether I got the description of what those two fields accommodates right?

Also, George, release-wise, I think this is rather harmless, wrt the possibility of introducing new bugs! :-) Moreover, even if one might not consider it a proper bugfix, I think it is something we need if we really want to honour what we said we would be doing when adding stuff to the libxl API, from 4.2 on. For that reason, I'm requesting a freeze exception, for allowing this to go in 4.3.

Thanks and Regards,
Dario

---

Dario Faggioli (1):
libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

 tools/libxl/libxl.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
#1 lore raw

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

Commits d0782481 and bec8f17e added these two fields in libxl_physinfo and in libxl_dominfo, respectively, but did not include the needed LIBXL_HAVE_<foo> runes. Adding them.

---
 tools/libxl/libxl.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
tools/libxl/libxl.h +18 -0
index 0bc005e..3d3bbdd 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.
+ */
+#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. */
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

Quoted 1 line · Dario Faggioli

Commits d0782481 and bec8f17e added these two fields in libxl_physinfo

One usually includes right after the git commit the title of the patches, so:

d0782481 ("xl: export 'outstanding_pages' value from xcinfo") and
...

Quoted 4 lines

and in libxl_dominfo, respectively, but did not include the needed LIBXL_HAVE_<foo> runes. Adding them.

Besides the above mention commit description part (And one tweak below) please also add

or Acked-by - whichever George is looking for.

Quoted 9 lines
---
 tools/libxl/libxl.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
tools/libxl/libxl.h +0 -0
index 0bc005e..3d3bbdd 100644

tools/libxl/libxl.h line 326

Quoted 9 lines
tools/libxl/libxl.h +6 -0
@@ -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.

Quoted 22 lines
tools/libxl/libxl.h +12 -0
+ */
+#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. */

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

#3 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Dario Faggioli

Commits d0782481 and bec8f17e added these two fields in libxl_physinfo

One usually includes right after the git commit the title of the patches, so:

d0782481 ("xl: export 'outstanding_pages' value from xcinfo") and
...

Ok, I think I see why that could be useful. Note taken, thanks. :-)

Quoted 11 lines
Quoted 4 lines

and in libxl_dominfo, respectively, but did not include the needed LIBXL_HAVE_<foo> runes. Adding them.

Besides the above mention commit description part (And one tweak below) please also add

or Acked-by - whichever George is looking for.

Ok, thanks again. George, Ian, should I respin incorporating Konrad's feedback (both to the changelog and to the code comment, of course)? Is this fine for being picked up in 4.3?

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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

#4 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

Quoted 17 lines · Dario Faggioli
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Dario Faggioli

Commits d0782481 and bec8f17e added these two fields in libxl_physinfo

One usually includes right after the git commit the title of the patches, so:

d0782481 ("xl: export 'outstanding_pages' value from xcinfo") and
...

Ok, I think I see why that could be useful. Note taken, thanks. :-)

Quoted 5 lines
Quoted 4 lines

and in libxl_dominfo, respectively, but did not include the needed LIBXL_HAVE_<foo> runes. Adding them.

Quoted 8 lines
Quoted 6 lines

Besides the above mention commit description part (And one tweak below) please also add

or Acked-by - whichever George is looking for.

Ok, thanks again. George, Ian, should I respin incorporating Konrad's feedback (both to the changelog and to the code comment, of course)?

Please do.

Quoted 1 line

Is this fine for being picked up in 4.3?

IMHO Yes.

Ian.

#5 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

Quoted 6 lines · Ian Campbell
Quoted 2 lines · Dario Faggioli

Ok, thanks again. George, Ian, should I respin incorporating Konrad's feedback (both to the changelog and to the code comment, of course)?

Please do.

I think I did that already... Can you see message <[email protected]> ?

As far as I can tell, I sent it on the list on "Fri, 07 Jun 2013 18:14:35 +0200" with you, George and Konrad in Cc... Does that matches the true, or is stgit somehow playing me? :-P

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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

#6 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

Quoted 5 lines · Dario Faggioli
Quoted 4 lines · Ian Campbell
Quoted 2 lines · Dario Faggioli

Ok, thanks again. George, Ian, should I respin incorporating Konrad's feedback (both to the changelog and to the code comment, of course)?

Quoted 8 lines
Quoted 2 lines

Please do.

I think I did that already... Can you see message <[email protected]> ?

As far as I can tell, I sent it on the list on "Fri, 07 Jun 2013 18:14:35 +0200" with you, George and Konrad in Cc... Does that matches the true, or is stgit somehow playing me? :-P

I got it, I just hadn't got that far through my post-vacation backlog yet.

Ian.

#7 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

In reply to Dario Faggioli
Quoted 4 lines · Dario Faggioli
Quoted 3 lines · Ian Campbell
Quoted 2 lines · Dario Faggioli

Ok, thanks again. George, Ian, should I respin incorporating Konrad's feedback (both to the changelog and to the code comment, of course)?

Quoted 8 lines
Quoted 2 lines

Please do.

I think I did that already... Can you see message <[email protected]> ?

As far as I can tell, I sent it on the list on "Fri, 07 Jun 2013 18:14:35 +0200" with you, George and Konrad in Cc... Does that matches the true, or is stgit somehow playing me? :-P

I saw it too. I think we are waiting for Ian or George to check it in.

Quoted 3 lines

Regards,
Dario

Acked-by
#8 lore raw

Re: [PATCH] libxl: add LIBXL_HAVE_<foo> for outstanding_pages and outstanding_memkb

In reply to Konrad Rzeszutek Wilk
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Dario Faggioli

Commits d0782481 and bec8f17e added these two fields in libxl_physinfo

One usually includes right after the git commit the title of the patches, so:

d0782481 ("xl: export 'outstanding_pages' value from xcinfo") and
...

Quoted 3 lines

and in libxl_dominfo, respectively, but did not include the needed LIBXL_HAVE_<foo> runes. Adding them.

Quoted 6 lines
Quoted 1 line

Besides the above mention commit description part (And one tweak below) please also add

or Acked-by - whichever George is looking for.

Both are good, now that I understand what "reviewed-by" actually means. :-)

BTW, I've been meaning to take a look to see if these are the right thing; but from a release standpoint, obviously these kinds of things are really important, and we should actually go through the libxl interface and see if there are any other bits we need to add something like this for.

So re the release:

I'll probably come by later and do a proper review.

-George