]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Emulate PERF_CNTR_GLOBAL_STATUS_SET for PerfMonV2
authorSean Christopherson <seanjc@google.com>
Fri, 11 Jul 2025 17:27:46 +0000 (10:27 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:24 +0000 (11:59 -0700)
commit68e61f6fd65610e73b17882f86fedfd784d99229
tree7e4c90a401ba15883d3493530605b858b0517ddf
parente750f85391286a4c8100275516973324b621a269
KVM: SVM: Emulate PERF_CNTR_GLOBAL_STATUS_SET for PerfMonV2

Emulate PERF_CNTR_GLOBAL_STATUS_SET when PerfMonV2 is enumerated to the
guest, as the MSR is supposed to exist in all AMD v2 PMUs.

Fixes: 4a2771895ca6 ("KVM: x86/svm/pmu: Add AMD PerfMonV2 support")
Cc: stable@vger.kernel.org
Cc: Sandipan Das <sandipan.das@amd.com>
Link: https://lore.kernel.org/r/20250711172746.1579423-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/pmu.c
arch/x86/kvm/svm/pmu.c
arch/x86/kvm/x86.c