From nobody Tue Nov 18 16:51:35 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=1611307343; cv=none; d=zohomail.com; s=zohoarc; b=BOqjHdYdsxybzCKkGL8UqEOAv7kC+JwiCZO2w8LgdLtBxxhqaGiIgp3tbTs2Xp8EBRNP6SxkEUWhnvvPZFM+wk1o0GbfTLRO1A6ekPZCSvKl0IRil22ESWmaMaVtY7Q/1mHD20fH7grfjSEju9kzqvbYoXWUdJyj9LPHiQ+AQNk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611307343; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=PsUl50B4Q0yPeDiJb4SPlXQsiySIOlkRRv1RmWsK7og=; b=BVnpWQPgA8uHXjZHfpTy3dzpNZEjGN1speumicy8aAIR7W3NHteZ0Q38kk9TiyfRCOok6Ydbz1YbpWh0+eCQjOGjtSJbir9w+Sg2tSki2Va1ozelxHLUiYC/RLSWAyLJwLPbHjhwGSU/YLsjpA86FptHh2k0+BsXCXxj7DPZLSQ= 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 16113073434371001.9160338360371; Fri, 22 Jan 2021 01:22:23 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-aLXQh_9SP1yVFb7BXdo-Mg-1; Fri, 22 Jan 2021 04:22:20 -0500 Received: by mail-ed1-f71.google.com with SMTP id n18so2635365eds.2 for ; Fri, 22 Jan 2021 01:22:19 -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 q2sm4723658edv.93.2021.01.22.01.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 01:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611307342; 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=PsUl50B4Q0yPeDiJb4SPlXQsiySIOlkRRv1RmWsK7og=; b=NpRhsEvRHgOI+fhqsaUIn5qdPfTj2vtt39a2ACms2IyC6wG41F39n3XwVp8XOvhYr/8CsA zjZrIACTg9pYzQ8kXtmQ868aGaiRFupPF1Cgl8U3UmvDqVGsjyJknUN9PaG6lqvmfxOnpw GO2gJYpmiPcbTMe9t6Rcz4+tdZfIQVM= X-MC-Unique: aLXQh_9SP1yVFb7BXdo-Mg-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=PsUl50B4Q0yPeDiJb4SPlXQsiySIOlkRRv1RmWsK7og=; b=f8fYHnH8nvsfv734dh9ANldVqyR4yZh09umufr+dwfHVfgqBJY+ArX1oQ+ez4pqyUH Y6BBXbyU3vRc9heSohSmllJLPGnPNCFN3PEY24pSB4t18gAIL9TbrCUCfwgtLuuUmW09 KniFeOMgNAkqZbGcIUTysjkUuhr0BU0TPKz+DtL7eGg+XjClPoGqTbs2qQkzL7oKo8pO bRbKptF3yB23An8xjQqYoukVEVRg20sY2WemcjUkSjqm/WI8M7wjbkXWrIvl2+bGp6XI 3wFUwCgBMReVI0LKjhKQjvMvLL5PEZvE5y8GyM0D3X3LzoIatcX76eDu1nJboCXBR0Wo +r3g== X-Gm-Message-State: AOAM533ObuKF96DWJpTxhkkhvpAw/o4R3l3f5d3NVZg3gss1YkQF7KOV VnAscl4GRgSGwP7wRsjn3aYB445/Dm0oreVGW0Zm0c2lmaMIkYF7RRXfX6L86/u2uRXMgyNuMt2 l9P5CswDqvLzyEQ== X-Received: by 2002:a17:906:a042:: with SMTP id bg2mr2308476ejb.540.1611307339087; Fri, 22 Jan 2021 01:22:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKi3V7jbIUfmu9SG/9O7oIPXNH0HlMt//aarVYcbY5t2elGMkbXOSgM1ufYoSWWK4Xp++E6A== X-Received: by 2002:a17:906:a042:: with SMTP id bg2mr2308462ejb.540.1611307338945; Fri, 22 Jan 2021 01:22:18 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Richard Henderson , Stefan Weil , Paolo Bonzini , "Daniel P . Berrange" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/2] meson: Warn when TCI is selected but TCG backend is available Date: Fri, 22 Jan 2021 10:22:05 +0100 Message-Id: <20210122092205.1855659-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210122092205.1855659-1-philmd@redhat.com> References: <20210122092205.1855659-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) Some new users get confused with 'TCG' and 'TCI', and enable TCI support expecting to enable TCG. Emit a warning when native TCG backend is available on the host architecture, mentioning this is a suboptimal configuration. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Stefan Weil Reviewed-by: Thomas Huth --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 0a645e54662..7aa52d306c6 100644 --- a/meson.build +++ b/meson.build @@ -234,6 +234,9 @@ error('Unsupported CPU @0@, try --enable-tcg-interpreter'.format(cpu= )) endif endif + if 'CONFIG_TCG_INTERPRETER' in config_host and cpu in supported_cpus + warning('Experimental TCI requested while native TCG is available on @= 0@, suboptimal performance expected'.format(cpu)) + endif accelerators +=3D 'CONFIG_TCG' config_host +=3D { 'CONFIG_TCG': 'y' } endif --=20 2.26.2