KVM: x86: Fix CPUID function for word 6 (80000001_ECX)
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Mon, 6 Nov 2017 17:44:23 +0000 (11:44 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:38:47 +0000 (17:38 +0100)
commit00251aedef3195e912184a5798952a7793a77abe
treede02dd40348adf46ad66f264bd8c4acaad7e78c3
parentd5e06a1867210049bbfe27864ee0a40cfd9b1e9b
KVM: x86: Fix CPUID function for word 6 (80000001_ECX)

commit 50a671d4d15b859f447fa527191073019b6ce9cb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/cpuid.h