Commit f2a8070d08 for qemu.org

commit f2a8070d08c157511489e71707649f140d35a881
Author: Peter Maydell <peter.maydell@linaro.org>
Date:   Mon Mar 30 16:14:37 2026 +0100

    target/i386: Treat qtest like TCG for supported-features

    In x86_cpu_get_supported_feature_word() we figure out the supported
    features differently for each accelerator. The default case is
    "set all feature bits"; however this triggers a warning because
    it enables two features which conflict with each other:

    $ ./build/x86/qemu-system-x86_64   -cpu max -accel qtest -S
    qemu-system-x86_64: warning: this feature conflicts with APX: CPUID[eax=07h,ecx=00h].EBX.mpx [bit 14]
    qemu-system-x86_64: warning: this feature conflicts with MPX: CPUID[eax=07h,ecx=01h].EDX.apxf [bit 21]

    Treat qtest like TCG here, to avoid the complaint.

    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
    Message-ID: <20260330151437.1787008-1-peter.maydell@linaro.org>
    Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 3b0a7c7363..c6fd1dc00e 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -8087,7 +8087,7 @@ uint64_t x86_cpu_get_supported_feature_word(X86CPU *cpu, FeatureWord w)
         r = hvf_get_supported_cpuid(wi->cpuid.eax,
                                     wi->cpuid.ecx,
                                     wi->cpuid.reg);
-    } else if (tcg_enabled()) {
+    } else if (tcg_enabled() || qtest_enabled()) {
         r = wi->tcg_features;
     } else {
         return ~0;