]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
i386: kvm: bit 10 of CPUID[8000_0001].EDX is reserved
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 6 Sep 2012 10:05:35 +0000 (10:05 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:21 +0000 (21:44 -0500)
Bit 10 of CPUID[8000_0001].EDX is not defined as an alias of
CPUID[1].EDX[10], so do not duplicate it on
kvm_arch_get_supported_cpuid().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-By: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Don Slutz <Don@CloudSwitch.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit b1f4679392a03f2b26a37bfa52e95d6cc4f73d82)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-i386/kvm.c

index ffc294ec392c9e068c6006797e9f842f41da5e60..294af5f45ce4949c5632d05184eedd8f6df8df28 100644 (file)
@@ -164,7 +164,7 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function,
                      * so add missing bits according to the AMD spec:
                      */
                     cpuid_1_edx = kvm_arch_get_supported_cpuid(s, 1, 0, R_EDX);
-                    ret |= cpuid_1_edx & 0x183f7ff;
+                    ret |= cpuid_1_edx & 0x183f3ff;
                     break;
                 }
                 break;