]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Always operate on kvm_vcpu data in cpuid_entry2_find()
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 01:34:01 +0000 (17:34 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:19:58 +0000 (14:19 -0800)
commit285185f8e47973cb85e4e7e08994b341f73fb566
treeb18279f91eb8f573461ec24af9b9af658fd29904
parenta5b32718081e5e2ddec1a1473a0e0f21bc35ed67
KVM: x86: Always operate on kvm_vcpu data in cpuid_entry2_find()

Now that KVM sets vcpu->arch.cpuid_{entries,nent} before processing the
incoming CPUID entries during KVM_SET_CPUID{,2}, drop the @entries and
@nent params from cpuid_entry2_find() and unconditionally operate on the
vCPU state.

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-35-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c