From nobody Mon Feb 9 21:21:19 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.zoho.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 1499099963223174.26548654644967; Mon, 3 Jul 2017 09:39:23 -0700 (PDT) Received: from localhost ([::1]:36284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS4Nd-0003S0-OS for importer@patchew.org; Mon, 03 Jul 2017 12:39:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS4JV-0008P9-4m for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dS4JT-0007K4-JG for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:35:05 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:36533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dS4JT-0007JY-Cw for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:35:03 -0400 Received: by mail-wm0-x244.google.com with SMTP id y5so21469588wmh.3 for ; Mon, 03 Jul 2017 09:35:03 -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 r5sm4867459wmr.9.2017.07.03.09.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jul 2017 09:35:01 -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=La+gLKDSrd76Xe/oPlA/rZrGyzXp0nyrFYtOKbsx098=; b=Ccr8TNBMyaQLqcdEeItAjR68P3+SC5UtZN1AV1rexMbbDu+EdkzP79oJcku4XrxMet 2QCGyuQ8IXkjg//EuNKbjQcJ8abiJotF51xsahqvQy/oAzqqoeSbBG5sqXVY7B/1yIjA c3rXe6xLo66rK7rVt4Rtp0d2xD1xn9IWtoTYJAu9pK24xDHTEpZjlzJvdpGZXgcu5dwy t7ylIl4+2h4k3+so4pWR1XGBFLq0pMYSyLHRMMMcZ+u/t/x6tozhc9sZNo9APa4ZHWru 93y5qHCm0s4d89iBZi/0oKsloT44nTRBFPJV/TEt5Pl2Vv0o55x0G7NHHVM5eZ//8Mdt gBKA== 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=La+gLKDSrd76Xe/oPlA/rZrGyzXp0nyrFYtOKbsx098=; b=jkrm3vm3jEMgVllIAN/dmmE6ocBctDrmdfx79OxFj+OlN0DWuG+jgV0RnxWB/rLvWk fZW50zZfx8+nIS0kITCgJ6stRyEVMdwst9PMV8rIPAwGbmRaQanNz0H3H5kZeJPFQ8Zr ek541/p5vcRHf9igwdxZPB4uobKqWbytqUyHfQu9LH9pS5W6XXUYAmIf8JEeUrAwjG4A +60wuFqHe11cLWjJuxGBupPwxpy7eDjJgOAlk8oNZ2aSOC/Pgh3aWkp3XyG3LGwchh3o tZpX/A5kG+Pf82UHArkrE8KQWuc40lLRzuu3mRkzvL8ycfsWgYyS6mAVgzUvPaTWMzwB wdbw== X-Gm-Message-State: AKS2vOwGm4ufTmYV7MPySJipaAoTjhuUV7w9UTCvlk+xtMZyF7BTLSDY x2FNkPeBewP5DIFCZ9I= X-Received: by 10.28.35.201 with SMTP id j192mr24185691wmj.26.1499099702171; Mon, 03 Jul 2017 09:35:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 3 Jul 2017 18:34:34 +0200 Message-Id: <1499099693-22903-4-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499099693-22903-1-git-send-email-pbonzini@redhat.com> References: <1499099693-22903-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:c09::244 Subject: [Qemu-devel] [PATCH 03/22] 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: yang.zhong@intel.com, thuth@redhat.com, a.rigo@virtualopensystems.com, anthony.xu@intel.com, Anthony Liguori , rth@twiddle.net 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 Reviewed-by: Daniel P. Berrange Reviewed-by: Richard Henderson --- configure | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 6d1a6a9..cc8f5e3 100755 --- a/configure +++ b/configure @@ -227,7 +227,12 @@ supported_target() { fi ;; 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 @@ -291,6 +296,7 @@ cap_ng=3D"" attr=3D"" libattr=3D"" xfs=3D"" +tcg=3D"yes" =20 vhost_net=3D"no" vhost_scsi=3D"no" @@ -1028,6 +1034,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" @@ -5190,7 +5200,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" @@ -5245,8 +5254,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" @@ -5689,8 +5702,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