This macro reflects whether the QEMU build enables TCG for non-native
architectures.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
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} %{power64} 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
@@ -57,11 +59,10 @@
%define with_qemu_kvm 0
%endif
-%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
# Then the hypervisor drivers that run outside libvirtd, in libvirt.so
--
2.41.0