]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Revert "target/i386: do not expose ARCH_CAPABILITIES on AMD CPU"
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 8 Oct 2025 13:20:10 +0000 (16:20 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 15 Oct 2025 20:25:03 +0000 (23:25 +0300)
This reverts commit 24778b1c7ee7aca9721ed4757b0e0df0c16390f7
(v10.0.2-66-g24778b1c7ee7) from the 10.0.x branch.

The problem is that the change makes qemu 10.0.x non-migratable
to subsequent qemu versions, since it requires introducing a new
machine type.

This revert re-introduces the problem with windows guests (which
is already fixed in windows but not in prior versions).
Details: https://gitlab.com/qemu-project/qemu/-/issues/3001

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reopens: https://gitlab.com/qemu-project/qemu/-/issues/3001 (for 10.0.x)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/kvm/kvm.c

index 70d6095be9145bb1fa918d86cc7d6c3e8a33cd74..e88e5d17dbcb8208af162d8e967dd363d1293866 100644 (file)
@@ -500,12 +500,8 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function,
          * Linux v4.17-v4.20 incorrectly return ARCH_CAPABILITIES on SVM hosts.
          * We can detect the bug by checking if MSR_IA32_ARCH_CAPABILITIES is
          * returned by KVM_GET_MSR_INDEX_LIST.
-         *
-         * But also, because Windows does not like ARCH_CAPABILITIES on AMD
-         * mcahines at all, do not show the fake ARCH_CAPABILITIES MSR that
-         * KVM sets up.
          */
-        if (!has_msr_arch_capabs || !(edx & CPUID_7_0_EDX_ARCH_CAPABILITIES)) {
+        if (!has_msr_arch_capabs) {
             ret &= ~CPUID_7_0_EDX_ARCH_CAPABILITIES;
         }
     } else if (function == 7 && index == 1 && reg == R_EAX) {