KVM: x86: Shuffle code to prepare for dropping guest_cpuid_has()
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 01:34:16 +0000 (17:34 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:20:14 +0000 (14:20 -0800)
commit820545bdfeb0192f2afb311df9fd9d61458d89d2
tree2c6476d4b95c839dd31559f7112efeaecdaf67d7
parent75d4642fce01308621851f2c097d8ea047c6d450
KVM: x86: Shuffle code to prepare for dropping guest_cpuid_has()

Move the implementations of guest_has_{spec_ctrl,pred_cmd}_msr() down
below guest_cpu_cap_has() so that their use of guest_cpuid_has() can be
replaced with calls to guest_cpu_cap_has().

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