From: Stefan Weil <weil@mail.berlios.de>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Jan Kiszka <jan.kiszka@web.de>, Avi Kivity <avi@redhat.com>,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] xen: fix xen-mapcache build on non-Xen capable targets
Date: Wed, 20 Jul 2011 18:31:35 +0200 [thread overview]
Message-ID: <4E2702E7.4090006@mail.berlios.de> (raw)
In-Reply-To: <alpine.DEB.2.00.1107201157310.12963@kaball-desktop>
Am 20.07.2011 13:01, schrieb Stefano Stabellini:
> On Wed, 20 Jul 2011, Avi Kivity wrote:
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>
> Alex sent another patch few days ago to do the same thing:
>
> http://marc.info/?l=qemu-devel&m=131099500331906&w=2
>
> it hasn't been merged yet but it is in Alex's xen-next branch.
So there are now at least 3 solutions (because I also
had prepared a patch which is still unpublished).
The last time I had sent a patch for the same problem with
conditionalcompilation (so no stubs were needed):
http://patchwork.ozlabs.org/patch/96204/.
Jan then proposed using static inline stub functions.
IMHO, static inline stub functions (Avi's patch) are
better than stub functions (Alex' patch) because they
avoid dead code for the stub functions. As far as I
know most linkers don't remove dead code.
In Avi's patch, there remain some questions:
* CONFIG_XEN needs config.h. Is it also included
(indirectly) in xen-all.c? I don't know that up to now,
that's the reason why I did not publish my patch.
* I only needed three inline stub functions:
static inline uint8_t *xen_map_cache(target_phys_addr_t phys_addr,
target_phys_addr_t size, uint8_t lock)
{
return NULL;
}
static inline ram_addr_t xen_ram_addr_from_mapcache(void *ptr)
{
return 0;
}
static void xen_invalidate_map_cache_entry(uint8_t *buffer)
{
}
* Do we need abort() and the related include statement?
Maybe assert(!"unexpected function call") would be a better
replacement for abort(), or simply do nothing.
No matter which solution is applied, I'd appreciate that
it is applied soon because the current builds are broken
for compilations without optimization.
Cheers,
Stefan Weil
next prev parent reply other threads:[~2011-07-20 16:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 9:14 [Qemu-devel] [PATCH] xen: fix xen-mapcache build on non-Xen capable targets Avi Kivity
2011-07-20 9:39 ` Alexander Graf
2011-07-20 11:01 ` Stefano Stabellini
2011-07-20 16:31 ` Stefan Weil [this message]
2011-07-20 16:40 ` Alexander Graf
2011-07-22 18:54 ` Blue Swirl
2011-07-23 0:07 ` Alexander Graf
2011-07-23 6:57 ` Blue Swirl
2011-07-23 7:47 ` Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E2702E7.4090006@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=agraf@suse.de \
--cc=avi@redhat.com \
--cc=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).