From patchwork Wed Jan 16 17:35:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 10766471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DCAE91E for ; Wed, 16 Jan 2019 17:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 679052EFEE for ; Wed, 16 Jan 2019 17:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ADA32EFF2; Wed, 16 Jan 2019 17:36:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AD9A62F2D7 for ; Wed, 16 Jan 2019 17:36:21 +0000 (UTC) Received: from localhost ([127.0.0.1]:57132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjp6y-00007D-CW for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 Jan 2019 12:36:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjp6K-0008F8-KI for qemu-devel@nongnu.org; Wed, 16 Jan 2019 12:35:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjp6I-0007Cz-HZ for qemu-devel@nongnu.org; Wed, 16 Jan 2019 12:35:40 -0500 Received: from smtp03.citrix.com ([162.221.156.55]:16923) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gjp6I-0007BU-9r for qemu-devel@nongnu.org; Wed, 16 Jan 2019 12:35:38 -0500 X-IronPort-AV: E=Sophos;i="5.56,486,1539648000"; d="scan'208";a="75742605" From: Anthony PERARD To: Date: Wed, 16 Jan 2019 17:35:27 +0000 Message-ID: <20190116173527.27741-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 162.221.156.55 Subject: [Qemu-devel] [PATCH] accel: Allow to build QEMU without TCG or KVM support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony PERARD , Paolo Bonzini , Thomas Huth Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Thomas Huth --- 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 } }