WSL2-Linux-Kernel/arch/x86/events/amd
Sandipan Das bae19fdd7e perf/x86/amd/core: Fix reloading events for SVM
Commit 1018faa6cf ("perf/x86/kvm: Fix Host-Only/Guest-Only
counting with SVM disabled") addresses an issue in which the
Host-Only bit in the counter control registers needs to be
masked off when SVM is not enabled.

The events need to be reloaded whenever SVM is enabled or
disabled for a CPU and this requires the PERF_CTL registers
to be reprogrammed using {enable,disable}_all(). However,
PerfMonV2 variants of these functions do not reprogram the
PERF_CTL registers. Hence, the legacy enable_all() function
should also be called.

Fixes: 9622e67e39 ("perf/x86/amd/core: Add PerfMonV2 counter control")
Reported-by: Like Xu <likexu@tencent.com>
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220518084327.464005-1-sandipan.das@amd.com
2022-05-19 23:46:14 +02:00
..
Makefile perf/x86/amd: Make Zen3 branch sampling opt-in 2022-04-05 10:24:38 +02:00
brs.c perf/x86/amd: Run AMD BRS code only on supported hw 2022-05-18 00:08:26 +02:00
core.c perf/x86/amd/core: Fix reloading events for SVM 2022-05-19 23:46:14 +02:00
ibs.c perf/amd/ibs: Advertise zen4_ibs_extensions as pmu capability attribute 2022-05-11 16:27:10 +02:00
iommu.c x86/events/amd/iommu: Remove redundant assignment to variable shift 2021-12-28 21:30:05 +01:00
iommu.h IOMMU Updates for Linux v5.13 2021-05-01 09:33:00 -07:00
power.c perf/x86/amd/power: Assign pmu.module 2021-08-26 09:12:57 +02:00
uncore.c perf/amd/uncore: Allow the driver to be built as a module 2021-08-26 09:14:36 +02:00