]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/cpu: Mark avx10_version filtered when prefix is NULL
authorZhao Liu <zhao1.liu@intel.com>
Wed, 6 Nov 2024 03:07:18 +0000 (11:07 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 17 Jan 2025 18:54:51 +0000 (21:54 +0300)
commit2f5f6cb90ab3b854044db773e418ef9867d9c9ff
tree5d69c479ef0ff2dffe6d8c5608898ec11628cc53
parent1032dccadb647cf517c9ee57ffd7acca2f88df5d
i386/cpu: Mark avx10_version filtered when prefix is NULL

In x86_cpu_filter_features(), if host doesn't support AVX10, the
configured avx10_version should be marked as filtered regardless of
whether prefix is NULL or not.

Check prefix before warn_report() instead of checking for
have_filtered_features.

Cc: qemu-stable@nongnu.org
Fixes: commit bccfb846fd52 ("target/i386: add AVX10 feature and AVX10 version property")
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Tao Su <tao1.su@linux.intel.com>
Link: https://lore.kernel.org/r/20241106030728.553238-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit cf4c263551886964c5d58bd7b675b13fd497b402)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/cpu.c