]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Remove all direct usage of cpuid_entry2_find()
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 01:34:03 +0000 (17:34 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:20:00 +0000 (14:20 -0800)
commit136d605b43657d577c5aa181554f119f4b5aa3c2
tree2d183eea3a78a4281168554480724c3bc44d3447
parent8b30cb367c46a2aaf5426c8d48bfb91453b4e2d1
KVM: x86: Remove all direct usage of cpuid_entry2_find()

Convert all use of cpuid_entry2_find() to kvm_find_cpuid_entry{,index}()
now that cpuid_entry2_find() operates on the vCPU state, i.e. now that
there is no need to use cpuid_entry2_find() directly in order to pass in
non-vCPU state.

To help prevent unwanted usage of cpuid_entry2_find(), #undef
KVM_CPUID_INDEX_NOT_SIGNIFICANT, i.e. force KVM to use
kvm_find_cpuid_entry().

No functional change intended.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-37-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c