KVM: x86: Update KVM-only leaf handling to allow for 100% KVM-only leafs
authorSean Christopherson <seanjc@google.com>
Fri, 25 Nov 2022 12:58:39 +0000 (20:58 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Nov 2022 18:33:26 +0000 (13:33 -0500)
commit047c7229906152fb85c23dc18fd25a00cd7cb4de
tree3148f374e5c924f1e2f289dd8b3bac324d22a54d
parentc4690d016182d271a862767145db8b2bc792f4a8
KVM: x86: Update KVM-only leaf handling to allow for 100% KVM-only leafs

Rename kvm_cpu_cap_init_scattered() to kvm_cpu_cap_init_kvm_defined() in
anticipation of adding KVM-only CPUID leafs that aren't recognized by the
kernel and thus not scattered, i.e. for leafs that are 100% KVM-defined.

Adjust/add comments to kvm_only_cpuid_leafs and KVM_X86_FEATURE to
document how to create new kvm_only_cpuid_leafs entries for scattered
features as well as features that are entirely unknown to the kernel.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221125125845.1182922-3-jiaxi.chen@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/reverse_cpuid.h