]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Clean up CPUID 0x7 sub-leaf loop
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:13 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:01 +0000 (17:58 +0100)
commit89c13ad7fe967bd2a48d6f8b0e4d70b8d41279ad
treef13586b8140cff75e306f716b257855d46696356
parentaab1b8c2aad5b3da7808a826e4ffb35e44b089f4
KVM: x86: Clean up CPUID 0x7 sub-leaf loop

Refactor the sub-leaf loop for CPUID 0x7 to move the main leaf out of
said loop.  The emitted code savings is basically a mirage, as the
handling of the main leaf can easily be split to its own helper to avoid
code bloat.

No functional change 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