KVM: x86: Init vcpu->arch.perf_capabilities in common x86 code
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:03:12 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:12 +0000 (12:31 -0500)
commit6c6f82bea96fddb96898edbbee248ad362b768f4
tree0ca7b2b5f37cb95455f96bd124fe8e9571a1968d
parentbec46859fb9d797a21c983100b1f425bebe89747
KVM: x86: Init vcpu->arch.perf_capabilities in common x86 code

Initialize vcpu->arch.perf_capabilities in x86's kvm_arch_vcpu_create()
instead of deferring initialization to vendor code.  For better or worse,
common x86 handles reads and writes to the MSR, and so common x86 should
also handle initializing the MSR.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221006000314.73240-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/x86.c