]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kvm: x86: Include CPUID leaf 0x8000001e in kvm's supported CPUID
authorJim Mattson <jmattson@google.com>
Wed, 27 Mar 2019 20:15:37 +0000 (13:15 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:06 +0000 (21:27 +0200)
commit382409b4c43e5b44ae4a869ff793d3cf01d12004
treeb11279aa88d37fba85c48c451c241eff9148aef2
parent32a243df82c8dc04ccba7fc6c6564ae9261cb738
kvm: x86: Include CPUID leaf 0x8000001e in kvm's supported CPUID

Kvm now supports extended CPUID functions through 0x8000001f.  CPUID
leaf 0x8000001e is AMD's Processor Topology Information leaf. This
contains similar information to CPUID leaf 0xb (Intel's Extended
Topology Enumeration leaf), and should be included in the output of
KVM_GET_SUPPORTED_CPUID, even though userspace is likely to override
some of this information based upon the configuration of the
particular VM.

Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Borislav Petkov <bp@suse.de>
Fixes: 8765d75329a38 ("KVM: X86: Extend CPUID range to include new leaf")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Marc Orr <marcorr@google.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c