From nobody Tue Feb 10 00:22:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499240377585688.5455610963961; Wed, 5 Jul 2017 00:39:37 -0700 (PDT) Received: from localhost ([::1]:44596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeuO-0002IH-93 for importer@patchew.org; Wed, 05 Jul 2017 03:39:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeWu-0004o1-VJ for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSeWt-0007lM-Vi for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:20 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:35900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSeWt-0007kr-P3 for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:19 -0400 Received: by mail-wr0-x243.google.com with SMTP id 77so49087926wrb.3 for ; Wed, 05 Jul 2017 00:15:19 -0700 (PDT) Received: from 640k.lan (94-39-191-51.adsl-ull.clienti.tiscali.it. [94.39.191.51]) by smtp.gmail.com with ESMTPSA id y35sm22202793wrc.51.2017.07.05.00.15.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 00:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=4vNFOuJcbQKXLb5Xbxf/cSScD86oqS+EW6/qIVDA6yM=; b=KQ8u/DyMwtcKU9GRUEypZ3qDUzCRvLaLusFwctrSRkOU/LKZg9PGiWOBuSp2DKbgtJ httWhbaz9u3OG1uvvD1sB3h1WctHQ7UQSzNjZxEICfjpmoJqu1VtuaL3wz8HC33sr37C XWZzNDXnmIIiHtVfbctJ3vbqpa0PktSQSlg7/THMmSbDpH2gtegEhzYqS4dRMo/MFhEQ WtyF2D0tXL0Eajt6dhTh/9eN8ktDZYLpX2n7udnHFX9tSMvXqV/bAP1G7ozouiF8GSym Bk5lrsQgksA/nw2ReSbgzm2At5v66fXQA1TpZrOYffvWlcZuiAo3utZyve5Y5No4BrbO YC9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=4vNFOuJcbQKXLb5Xbxf/cSScD86oqS+EW6/qIVDA6yM=; b=kBg3xdsEgEyVTdt0i0tCkUX31sjiVDRgjAb2897WtHrCDa8cfzKHXppRStUcx4yt9k AXVxsh+8uiNSbe4wGFkylE1/97uwGq8TrmN7DVeKHnky19uSrxiJlzhLd8Qjt//snKKx ufChHUBQwUgVoMOivZ1/7JcPT+vwd9EEaak95sRquDJ9/J7nHN9De/7o5kt1LUlbjYDh FR5vz4bzRcixWQetbejOz90mx0+SMMIp1hKtl2LMv/zpo2+ySwZj661E69QO79TWpASB 9DnrFIwX34yFnG9oAJYaXeiIslyjGq29vaHKX7MYN5gQjz0QQjWxwRhSx3OlBWcceOuU s3Zg== X-Gm-Message-State: AKS2vOzgiJg26jtS9gFVvU6l2gDUmTc1WeW0j80tHvArJLiJT4zAcdLL Lq6pHmNu3TWUn6thlrs= X-Received: by 10.223.146.161 with SMTP id 30mr43333928wrn.164.1499238918449; Wed, 05 Jul 2017 00:15:18 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 5 Jul 2017 09:14:27 +0200 Message-Id: <1499238885-26161-25-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499238885-26161-1-git-send-email-pbonzini@redhat.com> References: <1499238885-26161-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PULL 24/42] configure: add --disable-tcg configure option 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 Liguori Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This lets you build without TCG (hardware accelerationor qtest only). When this flag is passed to configure, it will automatically filter out the targ= et list to only those that support KVM or Xen or HAX. Signed-off-by: Anthony Liguori Signed-off-by: Paolo Bonzini --- configure | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/configure b/configure index ae69e96..806658c 100755 --- a/configure +++ b/configure @@ -232,7 +232,12 @@ supported_target() { return 1 ;; esac - return 0 + test "$tcg" =3D "yes" && return 0 + supported_kvm_target "$1" && return 0 + supported_xen_target "$1" && return 0 + supported_hax_target "$1" && return 0 + print_error "TCG disabled, but hardware accelerator not available for = '$target'" + return 1 } =20 # default parameters @@ -296,6 +301,7 @@ cap_ng=3D"" attr=3D"" libattr=3D"" xfs=3D"" +tcg=3D"yes" =20 vhost_net=3D"no" vhost_scsi=3D"no" @@ -1033,6 +1039,10 @@ for opt do ;; --enable-cap-ng) cap_ng=3D"yes" ;; + --disable-tcg) tcg=3D"no" + ;; + --enable-tcg) tcg=3D"yes" + ;; --disable-spice) spice=3D"no" ;; --enable-spice) spice=3D"yes" @@ -5195,7 +5205,6 @@ echo "module support $modules" echo "host CPU $cpu" echo "host big endian $bigendian" echo "target list $target_list" -echo "tcg debug enabled $debug_tcg" echo "gprof enabled $gprof" echo "sparse enabled $sparse" echo "strip binaries $strip_opt" @@ -5250,8 +5259,12 @@ echo "ATTR/XATTR support $attr" echo "Install blobs $blobs" echo "KVM support $kvm" echo "HAX support $hax" +echo "TCG support $tcg" +if test "$tcg" =3D "yes" ; then + echo "TCG debug enabled $debug_tcg" + echo "TCG interpreter $tcg_interpreter" +fi echo "RDMA support $rdma" -echo "TCG interpreter $tcg_interpreter" echo "fdt support $fdt" echo "preadv support $preadv" echo "fdatasync $fdatasync" @@ -5694,8 +5707,11 @@ fi if test "$signalfd" =3D "yes" ; then echo "CONFIG_SIGNALFD=3Dy" >> $config_host_mak fi -if test "$tcg_interpreter" =3D "yes" ; then - echo "CONFIG_TCG_INTERPRETER=3Dy" >> $config_host_mak +if test "$tcg" =3D "yes"; then + echo "CONFIG_TCG=3Dy" >> $config_host_mak + if test "$tcg_interpreter" =3D "yes" ; then + echo "CONFIG_TCG_INTERPRETER=3Dy" >> $config_host_mak + fi fi if test "$fdatasync" =3D "yes" ; then echo "CONFIG_FDATASYNC=3Dy" >> $config_host_mak --=20 1.8.3.1