]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Use common loop iterator when handling CPUID 0xD.N
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:21 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:07 +0000 (17:58 +0100)
commitd5064600d4fff7cc961ea78d183e0e337eb5e71c
tree615e82221e2aabd843b3547aea1fff268955e8af
parent924d3a7c3a630a81015ab8279e7e29dde1e5f3b6
KVM: x86: Use common loop iterator when handling CPUID 0xD.N

Use __do_cpuid_func()'s common loop iterator, "i", when enumerating the
sub-leafs for CPUID 0xD now that the CPUID 0xD loop doesn't need to
manual maintain separate counts for the entries index and CPUID index.

No functional changed intended.

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