From nobody Tue Nov 18 15:24:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611155969; cv=none; d=zohomail.com; s=zohoarc; b=SEBWAfhZxfMs0YxFk4gvXgNqBlTdsTwxzjcSK3ZqmhN4jhwuUBpWhEUFJfhitL/zdviQjFmkDIcWiKsCSttJSmUdCgAKjlnKf0jPAIcqYEQEKnpBs+WldvKgX496aImOy/1Zzr0wiCfDrfeHVBHRaBWzYh3EO3Jmd8yS9DLgi1s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611155969; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=gLS+yQfpTntD1627YhQpb6aYd+CIa/ZGPzYtpS5MTw4=; b=frqzcimUClP3h9IltXhPL7hx1XwXEAfPtl1ezew92Xnfsm0Id++Y5Y5A1r3EANbRhSLC5+DJ1raxq8eyWlr3KMMA1HLn36aYmYjtUGs2SUBnTDAgs5iFtop1ZwF282u4cm6OXfY81j2EQTXIz/DKO6OastidPAAUfYUvjP5yzB4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1611155969474831.8986767980041; Wed, 20 Jan 2021 07:19:29 -0800 (PST) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-435-mFXhBwsjOG60rr8d78adnw-1; Wed, 20 Jan 2021 10:19:25 -0500 Received: by mail-ej1-f70.google.com with SMTP id q11so7614740ejd.0 for ; Wed, 20 Jan 2021 07:19:24 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id s22sm1013292ejd.106.2021.01.20.07.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 07:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611155967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gLS+yQfpTntD1627YhQpb6aYd+CIa/ZGPzYtpS5MTw4=; b=C8Mhp0vnyWPjgkX96lsi8qgAEtlc64W0gk+HbnBuzV/eQVR5B5E8lLQMBDBuNji/1w3trG cx0glNSscTv2Cvbl+snB17v9273Efhxgfa/L2SAbn4eztD6kUhdHVTJYBiodrkHVCqn8Yf yyBvggX2XYLP/ux+nH9AMayS/NsTLKc= X-MC-Unique: mFXhBwsjOG60rr8d78adnw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gLS+yQfpTntD1627YhQpb6aYd+CIa/ZGPzYtpS5MTw4=; b=evWJsemfsv919Q6jYpUCsVPLGf2BIF2JqiU5pd0qGrVv6S1gTmuabU6IF0U9a3HLoE 5NKu1/cPke4i0BPREheiF3HXpyTdakS9ySgIkj5ZaQD9MJE3QRlh3GTzG0rstoiJsgHJ d7pjGOSdYQB6p99stlDnPX1oayrj1ZBbnWdoPLXfoVZan89ZaCdDaCjzTEiUAeuws2N2 bWURd+qHo0DEy8eOSxIssigoxzimW8RhVjsv2QdRulE+05LInkqOD9xQzkY49gueZXjD SN+faDcQy578f5RaLcCE5PfsByi2wFoWHecc50t/Us9/eLVIRoF2JP0OR2WqAZMUun+e ONCQ== X-Gm-Message-State: AOAM533CITRu/7p1sgJtuWc0Qsz68S5RbKTc+SVlpiWmyZ9PUuaFz0xE fRcMLxfNWRV2KrCPmzwXpw+EbRszxAeOf1OS9Vi3QAavNiYKPyYyTAGwMhJcuftDzXSY5XLS2dL 6mucahqDT9fZDgw== X-Received: by 2002:a05:6402:4391:: with SMTP id o17mr7802575edc.196.1611155963908; Wed, 20 Jan 2021 07:19:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7w7js2JeC+26mcDu5Nm7K38vcklJvi9jlmvw7IS1whCdfOKCuiDAS+INhaMZmcyKUkf98Qg== X-Received: by 2002:a05:6402:4391:: with SMTP id o17mr7802566edc.196.1611155963816; Wed, 20 Jan 2021 07:19:23 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] configure: Do not build TCG if not necessary Date: Wed, 20 Jan 2021 16:19:14 +0100 Message-Id: <20210120151916.1167448-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210120151916.1167448-1-philmd@redhat.com> References: <20210120151916.1167448-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) We don't want to check/build TCG when no system/user emulation is requested. This is useful in particular when building only: - tools - documentation Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9f016b06b54..012c527e3cd 100755 --- a/configure +++ b/configure @@ -337,7 +337,7 @@ linux_io_uring=3D"$default_feature" cap_ng=3D"auto" attr=3D"auto" xfs=3D"$default_feature" -tcg=3D"enabled" +tcg=3D"auto" membarrier=3D"$default_feature" vhost_net=3D"$default_feature" vhost_crypto=3D"$default_feature" @@ -2282,6 +2282,15 @@ case " $target_list " in ;; esac =20 +if [ "$tcg" =3D "auto" ]; then + # if neither system nor user emulation requested, no need to build TCG + if [ "$softmmu" =3D "no" ] && [ "$linux_user" =3D "no" ] && [ "$bsd_us= er" =3D "no" ]; then + tcg=3D"disabled" + else + tcg=3D"enabled" + fi +fi + feature_not_found() { feature=3D$1 remedy=3D$2 --=20 2.26.2