KVM: x86: Track supported PERF_CAPABILITIES in kvm_caps
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:03:11 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:11 +0000 (12:31 -0500)
commitbec46859fb9d797a21c983100b1f425bebe89747
tree91aa73353d95b3b0e380414363ea2905c7d222b1
parent0b9ca98b722969660ad98b39f766a561ccb39f5f
KVM: x86: Track supported PERF_CAPABILITIES in kvm_caps

Track KVM's supported PERF_CAPABILITIES in kvm_caps instead of computing
the supported capabilities on the fly every time.  Using kvm_caps will
also allow for future cleanups as the kvm_caps values can be used
directly in common x86 code.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Acked-by: Like Xu <likexu@tencent.com>
Message-Id: <20221006000314.73240-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/capabilities.h
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.h