* Re: [PATCH 03 of 30] tools: vnet: Remove
[not found] ` <28f04a6595064dca0062.1300723181@localhost.localdomain>
@ 2011-03-21 17:42 ` Ian Jackson
2011-03-21 19:19 ` Ian Campbell
0 siblings, 1 reply; 16+ messages in thread
From: Ian Jackson @ 2011-03-21 17:42 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH 03 of 30] tools: vnet: Remove"):
> tools: vnet: Remove
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
For reasons I don't understand, this doesn't seem to apply to my tree.
I get a lot of:
Reversed (or previously applied) patch detected! Assume -R? [n]
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 03 of 30] tools: vnet: Remove
2011-03-21 17:42 ` [PATCH 03 of 30] tools: vnet: Remove Ian Jackson
@ 2011-03-21 19:19 ` Ian Campbell
2011-03-31 17:08 ` Ian Jackson
0 siblings, 1 reply; 16+ messages in thread
From: Ian Campbell @ 2011-03-21 19:19 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com
On Mon, 2011-03-21 at 17:42 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH 03 of 30] tools: vnet: Remove"):
> > tools: vnet: Remove
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> For reasons I don't understand, this doesn't seem to apply to my tree.
> I get a lot of:
> Reversed (or previously applied) patch detected! Assume -R? [n]
Under tools/vnet I presume? How odd. Nothing in "hg incoming" looks
likely to have caused anything along those lines. The last patch to
touch it was "Make XEN_ROOT an absolute path." from last week
Do you want me to regenerate and resend tomorrow or are you happy to
just run the obvious "hg rm" rune during commit?
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 03 of 30] tools: vnet: Remove
2011-03-21 19:19 ` Ian Campbell
@ 2011-03-31 17:08 ` Ian Jackson
2011-04-01 10:21 ` Ian Campbell
0 siblings, 1 reply; 16+ messages in thread
From: Ian Jackson @ 2011-03-31 17:08 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel@lists.xensource.com
Ian Campbell writes ("Re: [PATCH 03 of 30] tools: vnet: Remove"):
> Do you want me to regenerate and resend tomorrow or are you happy to
> just run the obvious "hg rm" rune during commit?
Is it as simple as deleting the tools/vnet directory ? AFAICT it's
not referred to from tools/Makefile any more so I guess so.
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 03 of 30] tools: vnet: Remove
2011-03-31 17:08 ` Ian Jackson
@ 2011-04-01 10:21 ` Ian Campbell
2011-04-01 10:30 ` Keir Fraser
0 siblings, 1 reply; 16+ messages in thread
From: Ian Campbell @ 2011-04-01 10:21 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com
On Thu, 2011-03-31 at 18:08 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH 03 of 30] tools: vnet: Remove"):
> > Do you want me to regenerate and resend tomorrow or are you happy to
> > just run the obvious "hg rm" rune during commit?
>
> Is it as simple as deleting the tools/vnet directory ? AFAICT it's
> not referred to from tools/Makefile any more so I guess so.
There is some stuff not under tools/vnet (the xend bits) but if all your
rejects are under tools/vnet it is safe to just hg rm whatever remains
after applying the patch.
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: Re: [PATCH 03 of 30] tools: vnet: Remove
2011-04-01 10:21 ` Ian Campbell
@ 2011-04-01 10:30 ` Keir Fraser
0 siblings, 0 replies; 16+ messages in thread
From: Keir Fraser @ 2011-04-01 10:30 UTC (permalink / raw)
To: Ian Campbell, Ian Jackson; +Cc: xen-devel@lists.xensource.com
On 01/04/2011 11:21, "Ian Campbell" <Ian.Campbell@eu.citrix.com> wrote:
> On Thu, 2011-03-31 at 18:08 +0100, Ian Jackson wrote:
>> Ian Campbell writes ("Re: [PATCH 03 of 30] tools: vnet: Remove"):
>>> Do you want me to regenerate and resend tomorrow or are you happy to
>>> just run the obvious "hg rm" rune during commit?
>>
>> Is it as simple as deleting the tools/vnet directory ? AFAICT it's
>> not referred to from tools/Makefile any more so I guess so.
>
> There is some stuff not under tools/vnet (the xend bits) but if all your
> rejects are under tools/vnet it is safe to just hg rm whatever remains
> after applying the patch.
I already did the deleting last Friday. :-)
-- Keir
> Ian.
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <2276552067f8cad61231.1300723198@localhost.localdomain>]
[parent not found: <83ba7f8b634d542fea89.1300723202@localhost.localdomain>]
[parent not found: <825082d71dd594e0eee4.1300723203@localhost.localdomain>]
* Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line
[not found] ` <825082d71dd594e0eee4.1300723203@localhost.localdomain>
@ 2011-03-23 15:52 ` Ian Jackson
2011-03-23 15:59 ` Ian Campbell
0 siblings, 1 reply; 16+ messages in thread
From: Ian Jackson @ 2011-03-23 15:52 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line"):
> libxl: move libxl_doimid_valid_guest out of line
Why ?
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line
2011-03-23 15:52 ` [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line Ian Jackson
@ 2011-03-23 15:59 ` Ian Campbell
2011-03-23 16:57 ` Ian Jackson
0 siblings, 1 reply; 16+ messages in thread
From: Ian Campbell @ 2011-03-23 15:59 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com
On Wed, 2011-03-23 at 15:52 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line"):
> > libxl: move libxl_doimid_valid_guest out of line
>
> Why ?
Why should it be inline?
What actually led to the changes was that a subsequent patch removed the
indirect dependency which defined DOMID_FIRST_RESERVED. Rather than
finding and adding the appropriate xen header to libxl.h (which is a
valid option) I decided that the function shouldn't have been inline in
the first place...
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line
2011-03-23 15:59 ` Ian Campbell
@ 2011-03-23 16:57 ` Ian Jackson
2011-03-24 14:28 ` Ian Campbell
0 siblings, 1 reply; 16+ messages in thread
From: Ian Jackson @ 2011-03-23 16:57 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel@lists.xensource.com
Ian Campbell writes ("Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line"):
> Why should it be inline?
In general, I think it's fine to have trivial operations like this
inlined. Things which one would otherwise maybe use a macro for.
> What actually led to the changes was that a subsequent patch removed the
> indirect dependency which defined DOMID_FIRST_RESERVED. Rather than
> finding and adding the appropriate xen header to libxl.h (which is a
> valid option) I decided that the function shouldn't have been inline in
> the first place...
I think it's fine to import Xen headers into libxl.h.
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line
2011-03-23 16:57 ` Ian Jackson
@ 2011-03-24 14:28 ` Ian Campbell
0 siblings, 0 replies; 16+ messages in thread
From: Ian Campbell @ 2011-03-24 14:28 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com
On Wed, 2011-03-23 at 16:57 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line"):
> > Why should it be inline?
>
> In general, I think it's fine to have trivial operations like this
> inlined. Things which one would otherwise maybe use a macro for.
>
> > What actually led to the changes was that a subsequent patch removed the
> > indirect dependency which defined DOMID_FIRST_RESERVED. Rather than
> > finding and adding the appropriate xen header to libxl.h (which is a
> > valid option) I decided that the function shouldn't have been inline in
> > the first place...
>
> I think it's fine to import Xen headers into libxl.h.
In any case whatever it was which caused me to do this is not present in
the final series I ended up sending and neither this patch nor any
additional #includes are required AFAICT.
Ian.
^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <dd0e1d4aae8f95979df3.1300723206@localhost.localdomain>]
[parent not found: <26ba6a80310af7c3b360.1300723208@localhost.localdomain>]
* [PATCH 00 of 30] tools: shave build yaks
@ 2011-03-21 14:44 Ian Campbell
2011-03-21 14:44 ` [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line Ian Campbell
0 siblings, 1 reply; 16+ messages in thread
From: Ian Campbell @ 2011-03-21 14:44 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Campbell
Clean up a bunch of inconsistency, wierdness, cut-and-paste etc in the
tools/ build system. All in all it's a bit of a grab bag of stuff I
happened to notice as I was trawling
One specific useful thing which comes out of it is to isolate users of
libxl from needing to know about libxenstore or libxenctrl.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line
2011-03-21 14:44 [PATCH 00 of 30] tools: shave build yaks Ian Campbell
@ 2011-03-21 14:44 ` Ian Campbell
0 siblings, 0 replies; 16+ messages in thread
From: Ian Campbell @ 2011-03-21 14:44 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Campbell
# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1300718506 0
# Node ID 825082d71dd594e0eee41a4cb3b8006ea9e31451
# Parent 83ba7f8b634d542fea896ab16ce3f80220d14cb1
libxl: move libxl_doimid_valid_guest out of line
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
diff -r 83ba7f8b634d -r 825082d71dd5 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/libxl/libxl.h Mon Mar 21 14:41:46 2011 +0000
@@ -561,12 +561,7 @@ int libxl_cpupool_cpuremove_node(libxl_c
int libxl_cpupool_cpuremove_node(libxl_ctx *ctx, uint32_t poolid, int node, int *cpus);
int libxl_cpupool_movedomain(libxl_ctx *ctx, uint32_t poolid, uint32_t domid);
-static inline int libxl_domid_valid_guest(uint32_t domid)
-{
- /* returns 1 if the value _could_ be a valid guest domid, 0 otherwise
- * does not check whether the domain actually exists */
- return domid > 0 && domid < DOMID_FIRST_RESERVED;
-}
+int libxl_domid_valid_guest(uint32_t domid);
/* common paths */
const char *libxl_sbindir_path(void);
diff -r 83ba7f8b634d -r 825082d71dd5 tools/libxl/libxl_utils.c
--- a/tools/libxl/libxl_utils.c Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/libxl/libxl_utils.c Mon Mar 21 14:41:46 2011 +0000
@@ -55,6 +55,13 @@ const char *libxl_basename(const char *n
if (filename)
return strdup(filename+1);
return strdup(name);
+}
+
+int libxl_domid_valid_guest(uint32_t domid)
+{
+ /* returns 1 if the value _could_ be a valid guest domid, 0 otherwise
+ * does not check whether the domain actually exists */
+ return domid > 0 && domid < DOMID_FIRST_RESERVED;
}
unsigned long libxl_get_required_shadow_memory(unsigned long maxmem_kb, unsigned int smp_cpus)
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2011-04-01 10:30 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <patchbomb.1300723178@localhost.localdomain>
[not found] ` <28f04a6595064dca0062.1300723181@localhost.localdomain>
2011-03-21 17:42 ` [PATCH 03 of 30] tools: vnet: Remove Ian Jackson
2011-03-21 19:19 ` Ian Campbell
2011-03-31 17:08 ` Ian Jackson
2011-04-01 10:21 ` Ian Campbell
2011-04-01 10:30 ` Keir Fraser
[not found] ` <2276552067f8cad61231.1300723198@localhost.localdomain>
2011-03-23 15:40 ` [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down into the specific bindings Ian Jackson
2011-03-23 15:50 ` Ian Campbell
[not found] ` <83ba7f8b634d542fea89.1300723202@localhost.localdomain>
2011-03-23 15:51 ` [PATCH 24 of 30] tools: Remove $(CFLAGS) from links lines Ian Jackson
[not found] ` <825082d71dd594e0eee4.1300723203@localhost.localdomain>
2011-03-23 15:52 ` [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line Ian Jackson
2011-03-23 15:59 ` Ian Campbell
2011-03-23 16:57 ` Ian Jackson
2011-03-24 14:28 ` Ian Campbell
[not found] ` <dd0e1d4aae8f95979df3.1300723206@localhost.localdomain>
2011-03-23 15:56 ` [PATCH 28 of 30] libxl: do not expose libxenctrl/libxenstore headers via libxl.h Ian Jackson
[not found] ` <26ba6a80310af7c3b360.1300723208@localhost.localdomain>
2011-03-23 16:01 ` [PATCH 30 of 30] tools: remove pattern matched linking rules Ian Jackson
2011-03-23 16:04 ` Ian Campbell
2011-03-21 14:44 [PATCH 00 of 30] tools: shave build yaks Ian Campbell
2011-03-21 14:44 ` [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line 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).