From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Carlo Marcelo Arenas Belon
<carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Byron Stanoszek
<bstanoszek-vdaza9t/se1BDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH] Abort if gcc4 was used to compile qemu and kvm is not enabled
Date: Tue, 09 Oct 2007 09:53:27 -0500 [thread overview]
Message-ID: <470B95E7.3060202@codemonkey.ws> (raw)
In-Reply-To: <20071009064620.GB8418@tapir>
Carlo Marcelo Arenas Belon wrote:
> On Mon, Oct 08, 2007 at 02:29:32PM -0500, Anthony Liguori wrote:
>
> 3) We do nothing, add a warning to the compilation for the users to read at
> compile time (most of them not aware that they should be using gcc-3.x instead
> as they are used to see all the other compilation warnings anyway) and then
> let kvm segfault when they start it without loading the module first.
>
Here are some alternatives that I think are more reasonable:
1) implement a KVM target for QEMU that doesn't use dyngen at all. Some
of the architecture ports (like ia64 and s390) are going to require this
anyway since dyngen doesn't support ia64 or s390. There's no reason
this can be used for x86 too.
2) work on getting the assembly post-processor merged into upstream
QEMU. IMHO, this is the best long term strategy for QEMU GCC4 support.
3) you have to pass an option to ./configure to disable the gcc4 check.
Issue a big fat warning when the user does this saying that the
resulting QEMU will not probably work with -no-kvm or if the KVM modules
are loaded. The user is smart enough to disable the gcc4 check so I
have to imagine that they are smart enough to not completely ignore this
warning.
Regards,
Anthony Liguori
> If nothing, a message saying this won't work because you used the wrong
> compiler, is IMHO better than a plain segfault.
>
> Carlo
>
> PS. if qemu gets upstream officially a solution to compile with gcc4, I'll be
> the first one getting that merged and removing this patch.
>
> PS2. getting gcc4 to generate valid chunks of "copyable" code as required by
> qemu's dyngen is not something that would happen accidentally, for a promising
> alternative look at the GCC 2007 proceedings abstract "Towards GCC as a
> compiler for multiple VMs", pages 117-130,
> http://ols2006.108.redhat.com/2007/GCC-Reprints/GCC2007-Proceedings.pdf
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next prev parent reply other threads:[~2007-10-09 14:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-08 15:44 [PATCH] Abort if gcc4 was used to compile qemu and kvm is not enabled Carlo Marcelo Arenas Belon
2007-10-08 15:53 ` Anthony Liguori
[not found] ` <470A5290.4040504-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-08 18:45 ` Byron Stanoszek
[not found] ` <Pine.LNX.4.64.0710081411160.27239-4mf1WHGLwUrYtjvyW6yDsg@public.gmane.org>
2007-10-08 19:29 ` Anthony Liguori
[not found] ` <470A851C.3050602-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-09 6:46 ` Carlo Marcelo Arenas Belon
2007-10-09 14:53 ` Anthony Liguori [this message]
2007-10-09 13:28 ` Avi Kivity
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=470B95E7.3060202@codemonkey.ws \
--to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
--cc=bstanoszek-vdaza9t/se1BDgjK7y7TUQ@public.gmane.org \
--cc=carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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