OSDN Git Service

kvm: x86: Add "significant index" flag to a few CPUID leaves
authorJim Mattson <jmattson@google.com>
Thu, 12 Sep 2019 16:55:03 +0000 (09:55 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 14:04:44 +0000 (16:04 +0200)
commita06dcd625d6181747fac7f4c140b5a4c397a778c
treea61ba4e5969b77c876d29126699aaeae22ac15da
parent9a5c034c9abaef81ad9df0221638785a088942b5
kvm: x86: Add "significant index" flag to a few CPUID leaves

According to the Intel SDM, volume 2, "CPUID," the index is
significant (or partially significant) for CPUID leaves 0FH, 10H, 12H,
17H, 18H, and 1FH.

Add the corresponding flag to these CPUID leaves in do_host_cpuid().

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Steve Rutherford <srutherford@google.com>
Fixes: a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c