From nobody Sun Feb 8 04:12:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@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 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1689864645; cv=none; d=zohomail.com; s=zohoarc; b=Q+uWx30gqqng0HTq/oZnDLd3VwCF3VKFJ0pHH42MluYYq1/I2JocTt4j2YJIaFcDewsgagOBssAMdR3WncIXS+zngTDMa5+U+OTLY+Cz0lWD31rLi41Fsi/HT+DS2AO+mW4Bhidr+U8Odr6xMlMRIPni+/tcdgu+v130SWJv3qc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1689864645; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2mAJHosCnJKxcscslY2e2IjzUfSocXDB3vX4ZaPfkco=; b=J9c65tmxXbOshTA0EOixbxrYxKbDmulOZyqHtSXS4GCJO00KWbcgtUIMlRA78KWFCCr/pvRlMzrcLtRhiKAHDfEgaVEv8GHVCg15cKV3wc/pTkTJMq1dATyDx38JOYZw6squ8GmP/VEPBtfZTuaqNlGBSYkXWBH5fOlazYXAKxM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1689864645266219.20677724331324; Thu, 20 Jul 2023 07:50:45 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-86-MvBouIEaPmyeJju2NcBoDg-1; Thu, 20 Jul 2023 10:50:40 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 781BE88CC49; Thu, 20 Jul 2023 14:50:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E00D140E952; Thu, 20 Jul 2023 14:50:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2D52119465BD; Thu, 20 Jul 2023 14:50:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7DDC919465BA for ; Thu, 20 Jul 2023 14:50:21 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 66FD8F77B9; Thu, 20 Jul 2023 14:50:16 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.42.28.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2E53F6CDC; Thu, 20 Jul 2023 14:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689864642; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2mAJHosCnJKxcscslY2e2IjzUfSocXDB3vX4ZaPfkco=; b=BSkLvNyxA4cBX3PkcgigkgAi2gRkJcwmgDfcvgm3pADuksf9VeU0mBXFh6L8xhv9piX+mO Xct5p5BE6oXYxV+HsbIC65tJVu3QwYJnBO95YVXyzCNaFvAwixJcgaxJQwD7/SEcnQyUBq Y91XK3iz/pbHQSsUr8J09z3C6mihFyI= X-MC-Unique: MvBouIEaPmyeJju2NcBoDg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH RFC 4/4] rpm: use %{qemu_sysemu_tcg_non_native} Date: Thu, 20 Jul 2023 15:50:11 +0100 Message-ID: <20230720145011.20402-5-berrange@redhat.com> In-Reply-To: <20230720145011.20402-1-berrange@redhat.com> References: <20230720145011.20402-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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) X-ZM-MESSAGEID: 1689864645530100001 This macro reflects whether the QEMU build enables TCG for non-native architectures. Signed-off-by: Daniel P. Berrang=C3=A9 --- libvirt.spec.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index e520def44b..e1692c7712 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -20,9 +20,11 @@ %define qemu_sysemu_host_arches aarch64 s390x %{power64} x86_64 %endif %define qemu_sysemu_kvm_arches %{qemu_sysemu_host_arches} + %define qemu_sysemu_tcg_non_native 0 %else %define qemu_sysemu_host_arches aarch64 %{arm} %{ix86} %{mips} %{p= ower64} riscv64 s390x x86_64 %define qemu_sysemu_kvm_arches aarch64 %{ix86} %{mips} %{power64} = riscv64 s390x x86_64 + %define qemu_sysemu_tcg_non_native 1 %endif %endif =20 @@ -57,11 +59,10 @@ %define with_qemu_kvm 0 %endif =20 -%define with_qemu_tcg %{with_qemu} - -# RHEL disables TCG on all architectures -%if 0%{?rhel} - %define with_qemu_tcg 0 +%if %{qemu_sysemu_tcg_non_native} + %define with_qemu_tcg %{with_qemu} +%else + %define with_qemu_tcg 0 %endif =20 # Then the hypervisor drivers that run outside libvirtd, in libvirt.so --=20 2.41.0