OSDN Git Service

KVM: x86: Add Intel CPUID.1F cpuid emulation support
authorLike Xu <like.xu@linux.intel.com>
Thu, 6 Jun 2019 01:18:45 +0000 (09:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:43:44 +0000 (11:43 +0200)
commita87f2d3a6eadabad3ce3a8a57c1dd04c14b856ba
tree073e39c6a18c151d984251d5c860fb35f478cc59
parent1fc5d19472f77fc44f0c5b6852b18416f1db3fea
KVM: x86: Add Intel CPUID.1F cpuid emulation support

Add support to expose Intel V2 Extended Topology Enumeration Leaf for
some new systems with multiple software-visible die within each package.

Because unimplemented and unexposed leaves should be explicitly reported
as zero, there is no need to limit cpuid.0.eax to the maximum value of
feature configuration but limit it to the highest leaf implemented in
the current code. A single clamping seems sufficient and cheaper.

Co-developed-by: Xiaoyao Li <xiaoyao.li@linux.intel.com>
Signed-off-by: Xiaoyao Li <xiaoyao.li@linux.intel.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c