projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
917dc60
)
KVM: x86: Fix CPUID function for word 6 (80000001_ECX)
author
Janakarajan Natarajan
<Janakarajan.Natarajan@amd.com>
Mon, 6 Nov 2017 17:44:23 +0000
(11:44 -0600)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 17 Nov 2017 12:20:22 +0000
(13:20 +0100)
The function for CPUID
80000001
ECX is set to 0xc0000001. Set it to
0x80000001.
Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Fixes: d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers")
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/cpuid.h
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/cpuid.h
b/arch/x86/kvm/cpuid.h
index cdc70a3a65838b10d558c3d0b14bcdf4d9e996d2..c2cea6651279f706f488cf51a523301e6de4ae77 100644
(file)
--- a/
arch/x86/kvm/cpuid.h
+++ b/
arch/x86/kvm/cpuid.h
@@
-44,7
+44,7
@@
static const struct cpuid_reg reverse_cpuid[] = {
[CPUID_8086_0001_EDX] = {0x80860001, 0, CPUID_EDX},
[CPUID_1_ECX] = { 1, 0, CPUID_ECX},
[CPUID_C000_0001_EDX] = {0xc0000001, 0, CPUID_EDX},
- [CPUID_8000_0001_ECX] = {0x
c
0000001, 0, CPUID_ECX},
+ [CPUID_8000_0001_ECX] = {0x
8
0000001, 0, CPUID_ECX},
[CPUID_7_0_EBX] = { 7, 0, CPUID_EBX},
[CPUID_D_1_EAX] = { 0xd, 1, CPUID_EAX},
[CPUID_F_0_EDX] = { 0xf, 0, CPUID_EDX},