]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0b3878643cefc1073b6776df1bcb3d10bd90447
tree073e39c6a18c151d984251d5c860fb35f478cc59
parentbe2c7c83d72d226cacc7709db6b9e6d76c6f5da0
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