* [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend
@ 2011-08-29 17:46 Stefan Weil
2011-08-29 18:32 ` Lluís
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Weil @ 2011-08-29 17:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Michael Roth
Builds with configure --enable-trace-backend=simple failed on linux
because qemu-ga then uses simpletrace.c which needs get_clock which
needs use_rt_clock which was unresolved.
Adding qemu-timer-common.o fixes this. It adds a little overhead
(about 150 byte).
Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 8606849..63cc07f 100644
--- a/Makefile
+++ b/Makefile
@@ -197,7 +197,7 @@ QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.c qga-qapi-types.h qga-qapi-
$(QGALIB_GEN): $(GENERATED_HEADERS)
$(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
-qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(trace-obj-y) $(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o)
+qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(trace-obj-y) qemu-timer-common.o $(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o)
QEMULIBS=libhw32 libhw64 libuser libdis libdis-user
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend
2011-08-29 17:46 [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend Stefan Weil
@ 2011-08-29 18:32 ` Lluís
2011-08-29 19:20 ` Stefan Weil
0 siblings, 1 reply; 4+ messages in thread
From: Lluís @ 2011-08-29 18:32 UTC (permalink / raw)
To: Stefan Weil; +Cc: Anthony Liguori, qemu-devel, Michael Roth
Stefan Weil writes:
> Builds with configure --enable-trace-backend=simple failed on linux
> because qemu-ga then uses simpletrace.c which needs get_clock which
> needs use_rt_clock which was unresolved.
> Adding qemu-timer-common.o fixes this. It adds a little overhead
> (about 150 byte).
There are a couple of threads associated to this very same topic:
http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02915.html
http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg03302.html
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend
2011-08-29 18:32 ` Lluís
@ 2011-08-29 19:20 ` Stefan Weil
2011-08-29 19:33 ` Michael Roth
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Weil @ 2011-08-29 19:20 UTC (permalink / raw)
To: xscript; +Cc: Blue Swirl, Anthony Liguori, Michael Roth, QEMU Developers
Am 29.08.2011 20:32, schrieb Lluís:
> Stefan Weil writes:
>> Builds with configure --enable-trace-backend=simple failed on linux
>> because qemu-ga then uses simpletrace.c which needs get_clock which
>> needs use_rt_clock which was unresolved.
>> Adding qemu-timer-common.o fixes this. It adds a little overhead
>> (about 150 byte).
>
> There are a couple of threads associated to this very same topic:
>
> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02915.html
> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg03302.html
>
> Lluis
Thanks for the links. So we now have three patch sets for one problem,
and it will be fixed by a maintainer commit soon :-)
I personally prefer Blue Swirl's patch (which avoids the overhead)
or my own patch (which adds a little overhead but is the simplest
of all three patches). Sorting lists of object files and removing
duplicates looks strange in my opinion (and might also be bad when
related code no longer shares the same memory page).
With my patch, qemu-ga and the other tools (qemu-io, qemu-img, ...)
also use similar object lists.
Kind regards,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend
2011-08-29 19:20 ` Stefan Weil
@ 2011-08-29 19:33 ` Michael Roth
0 siblings, 0 replies; 4+ messages in thread
From: Michael Roth @ 2011-08-29 19:33 UTC (permalink / raw)
To: Stefan Weil; +Cc: Blue Swirl, Anthony Liguori, xscript, QEMU Developers
On 08/29/2011 02:20 PM, Stefan Weil wrote:
> Am 29.08.2011 20:32, schrieb Lluís:
>> Stefan Weil writes:
>>> Builds with configure --enable-trace-backend=simple failed on linux
>>> because qemu-ga then uses simpletrace.c which needs get_clock which
>>> needs use_rt_clock which was unresolved.
>>> Adding qemu-timer-common.o fixes this. It adds a little overhead
>>> (about 150 byte).
>>
>> There are a couple of threads associated to this very same topic:
>>
>> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02915.html
>> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg03302.html
>>
>> Lluis
>
> Thanks for the links. So we now have three patch sets for one problem,
> and it will be fixed by a maintainer commit soon :-)
>
4, actually :) An alternative proposal from Blue was setting
CONFIG_QEMU_TIMER based on whether or not qemu-timer-common.o was needed
for a particular dependency, so anyone dependent on, say, trace-obj-y
could just have:
blah-obj-$(CONFIG_QEMU_TIMER) += qemu-timer-common.o
I CC'd you on the patch.
> I personally prefer Blue Swirl's patch (which avoids the overhead)
> or my own patch (which adds a little overhead but is the simplest
> of all three patches). Sorting lists of object files and removing
> duplicates looks strange in my opinion (and might also be bad when
> related code no longer shares the same memory page).
>
I actually preferred the sorted list approach, I think it mirrors how
most projects handle duplicate header includes and allows for defining a
self-sufficient group of objects without needed to worry whether 2
groups list the same object as a dependency. This allows results in one
group being underspecified and any subsequent user of that group to be
aware of what's missing.
> With my patch, qemu-ga and the other tools (qemu-io, qemu-img, ...)
> also use similar object lists.
>
> Kind regards,
> Stefan
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-29 19:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-29 17:46 [Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend Stefan Weil
2011-08-29 18:32 ` Lluís
2011-08-29 19:20 ` Stefan Weil
2011-08-29 19:33 ` Michael Roth
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).