From: Anthony PERARD <anthony.perard@citrix.com>
To: Thomas Huth <thuth@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] accel: Allow to build QEMU without TCG or KVM support
Date: Thu, 17 Jan 2019 10:55:20 +0000 [thread overview]
Message-ID: <20190117105520.GJ1271@perard.uk.xensource.com> (raw)
In-Reply-To: <e34776ec-6af9-0521-266f-80f83030c8c0@redhat.com>
On Thu, Jan 17, 2019 at 07:02:24AM +0100, Thomas Huth wrote:
> On 2019-01-16 18:35, Anthony PERARD wrote:
> > Instead of deny build of QEMU without a default accelerator, simply
> > report an error when the user haven't passed -accel or -machine accel=
> > and TCG and KVM isn't builtin.
> >
> > ./configure already check that at least one accelerator is available.
> >
> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> > ---
> > accel/accel.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/accel/accel.c b/accel/accel.c
> > index 68b6d56323..0d5b370dfd 100644
> > --- a/accel/accel.c
> > +++ b/accel/accel.c
> > @@ -91,7 +91,9 @@ void configure_accelerator(MachineState *ms, const char *progname)
> > #elif defined(CONFIG_KVM)
> > accel = "kvm";
> > #else
> > -#error "No default accelerator available"
> > + error_report("No accelerator selected and"
> > + " no default accelerator available");
> > + exit(1);
> > #endif
> > }
> > }
>
> That looks a little bit friendlier, indeed.
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
> Out of curiosity: Did you hit the #error while compiling? Or just by
> reading the recent patches?
I've hit the #error. I often build QEMU with --disable-tcg --disable-kvm
--enable-xen just because I only need to build/test xen. So if I can
disable features that I don't need to build QEMU a tiny bit faster, I do
:).
--
Anthony PERARD
next prev parent reply other threads:[~2019-01-17 10:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-16 17:35 [Qemu-devel] [PATCH] accel: Allow to build QEMU without TCG or KVM support Anthony PERARD
2019-01-16 18:14 ` Paolo Bonzini
2019-01-17 6:02 ` Thomas Huth
2019-01-17 10:55 ` Anthony PERARD [this message]
2019-01-17 11:06 ` Thomas Huth
2019-01-17 11:23 ` Anthony PERARD
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=20190117105520.GJ1271@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.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).