From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:46036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk0lj-0003si-NP for qemu-devel@nongnu.org; Thu, 17 Jan 2019 01:03:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk0lC-0002UH-Kt for qemu-devel@nongnu.org; Thu, 17 Jan 2019 01:02:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37966) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gk0lC-0002N8-Cf for qemu-devel@nongnu.org; Thu, 17 Jan 2019 01:02:38 -0500 References: <20190116173527.27741-1-anthony.perard@citrix.com> From: Thomas Huth Message-ID: Date: Thu, 17 Jan 2019 07:02:24 +0100 MIME-Version: 1.0 In-Reply-To: <20190116173527.27741-1-anthony.perard@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] accel: Allow to build QEMU without TCG or KVM support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony PERARD , qemu-devel@nongnu.org Cc: Paolo Bonzini 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 > --- > 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 Out of curiosity: Did you hit the #error while compiling? Or just by reading the recent patches? Thomas