]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Simplify handling of Centaur CPUID leafs
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:06 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:56 +0000 (17:57 +0100)
commitd03e6fddc239cd45a1855ae7aad1d05b158d3a4d
tree46191b89626038d2ef97ae9afe2fe23ea59576bb
parent88916e9843929ce7712a46df6d62f90f97446042
KVM: x86: Simplify handling of Centaur CPUID leafs

Refactor the handling of the Centaur-only CPUID leaf to detect the leaf
via a runtime query instead of adding a one-off callback in the static
array.  When the callback was introduced, there were additional fields
in the array's structs, and more importantly, retpoline wasn't a thing.

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