From nobody Sun Feb 8 22:34:48 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; 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 1499076893835222.28605402457845; Mon, 3 Jul 2017 03:14:53 -0700 (PDT) Received: from localhost ([::1]:33788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRyNY-0001iN-1l for importer@patchew.org; Mon, 03 Jul 2017 06:14:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRyLp-0008Vt-Tl for qemu-devel@nongnu.org; Mon, 03 Jul 2017 06:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRyLn-0001cF-3Q for qemu-devel@nongnu.org; Mon, 03 Jul 2017 06:13:05 -0400 Received: from mga01.intel.com ([192.55.52.88]:22067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRyLm-0001bx-Qy for qemu-devel@nongnu.org; Mon, 03 Jul 2017 06:13:03 -0400 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2017 03:13:01 -0700 Received: from yangzhon-virtual.bj.intel.com ([10.238.145.52]) by fmsmga005.fm.intel.com with ESMTP; 03 Jul 2017 03:13:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,302,1496127600"; d="scan'208";a="121724095" From: Yang Zhong To: pbonzini@redhat.com, rth@twiddle.net, thuth@redhat.com Date: Mon, 3 Jul 2017 18:12:09 +0800 Message-Id: <1499076743-15477-2-git-send-email-yang.zhong@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499076743-15477-1-git-send-email-yang.zhong@intel.com> References: <1499076743-15477-1-git-send-email-yang.zhong@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.88 Subject: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg 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, anthony.xu@intel.com, qemu-devel@nongnu.org, a.rigo@virtualopensystems.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add the disable-tcg option into configure and echo CONFIG_TCG=3Dy into $config_target_mak. The default tcg is enabled for all build, only i386 and x86_64 softmmu option can be disabled. This operation do not make big change with the older build command. The new configure build command like below (1)./configure tcg is defaultly enabled (2)./configure --disable-tcg --target-list=3Dx86_64-softmmu tcg is disabled in x86_64-softmmu (3)./configure --disable-tcg --target-list=3Di386-softmmu tcg is disabled in i386-softmmu If the --target-list include other softmmus or user options, the configure command will report error and configure is aborted. The error as: ERROR: The current aarch64-softmmu can't support disable-tcg, only i386-softmmu|x86_64-softmmu support disable-tcg or ERROR: The user build can't support disable-tcg, only i386-softmmu|x86_64-softmmu support disable-tcg Signed-off-by: Yang Zhong --- configure | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c571ad1..61ce514 100755 --- a/configure +++ b/configure @@ -224,6 +224,7 @@ cap_ng=3D"" attr=3D"" libattr=3D"" xfs=3D"" +tcg=3D"yes" =20 vhost_net=3D"no" vhost_scsi=3D"no" @@ -953,6 +954,10 @@ for opt do ;; --enable-hax) hax=3D"yes" ;; + --disable-tcg) tcg=3D"no" + ;; + --enable-tcg) tcg=3D"yes" + ;; --disable-tcg-interpreter) tcg_interpreter=3D"no" ;; --enable-tcg-interpreter) tcg_interpreter=3D"yes" @@ -1715,6 +1720,24 @@ case " $target_list " in ;; esac =20 +if test "$tcg" =3D "no"; then + for target in $target_list; do + if test "$softmmu" =3D "yes"; then + case $target in + i386-softmmu|x86_64-softmmu) + ;; + *) + error_exit "The current $target can't support disable-tcg,"\ + "only i386-softmmu|x86_64-softmmu support disable-tcg" + ;; + esac + else + error_exit "The user build can't support disable-tcg,"\ + "only i386-softmmu|x86_64-softmmu support disable-tcg" + fi + done +fi + feature_not_found() { feature=3D$1 remedy=3D$2 @@ -5119,7 +5142,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" @@ -5173,6 +5195,11 @@ echo "Linux AIO support $linux_aio" echo "ATTR/XATTR support $attr" echo "Install blobs $blobs" echo "KVM support $kvm" +echo "TCG support $tcg" +if test "$tcg" =3D "yes" ; then + echo "TCG debug enabled $debug_tcg" + echo "TCG interpreter $tcg_interpreter" +fi echo "HAX support $hax" echo "RDMA support $rdma" echo "TCG interpreter $tcg_interpreter" @@ -6231,6 +6258,7 @@ fi if test "$target_user_only" =3D "yes" ; then echo "CONFIG_USER_ONLY=3Dy" >> $config_target_mak echo "CONFIG_QEMU_INTERP_PREFIX=3D\"$interp_prefix1\"" >> $config_target= _mak + echo "CONFIG_TCG=3Dy" >> $config_target_mak fi if test "$target_linux_user" =3D "yes" ; then echo "CONFIG_LINUX_USER=3Dy" >> $config_target_mak @@ -6250,6 +6278,19 @@ if test "$target_bsd_user" =3D "yes" ; then echo "CONFIG_BSD_USER=3Dy" >> $config_target_mak fi =20 +if test "$target_softmmu" =3D "yes" ; then + case "$target_name" in + i386|x86_64) + if test "$tcg" =3D "yes" ; then + echo "CONFIG_TCG=3Dy" >> $config_target_mak + fi + ;; + *) + echo "CONFIG_TCG=3Dy" >> $config_target_mak + ;; + esac +fi + # generate QEMU_CFLAGS/LDFLAGS for targets =20 cflags=3D"" --=20 1.9.1