]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Remove the unnecessary loop on CPUID 0x7 sub-leafs
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:49 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:29 +0000 (17:58 +0100)
commitb00df4c3e0c0abc9a7424159bf18ff44d032fe08
treefd01db91191ac84341386e23ca05076245466446
parent7908a38a7d5bb1487479a6d79fcd5e9306b56bda
KVM: x86: Remove the unnecessary loop on CPUID 0x7 sub-leafs

Explicitly handle CPUID 0x7 sub-leaf 1.  The kernel is currently aware
of exactly one feature in CPUID 0x7.1,  which means there is room for
another 127 features before CPUID 0x7.2 will see the light of day, i.e.
the looping is likely to be dead code for years to come.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c