Skip to content

Commit

Permalink
i386: kvm: bit 10 of CPUID[8000_0001].EDX is reserved
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ehabkost authored and blueswirl committed Sep 30, 2012
1 parent 6f8fd25 commit b1f4679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-i386/kvm.c
Expand Up @@ -165,7 +165,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;
Expand Down

0 comments on commit b1f4679

Please sign in to comment.