diff options
| author | Sean Christopherson <[email protected]> | 2024-01-09 15:02:24 -0800 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-01-30 15:28:02 -0800 |
| commit | 61bb2ad795a72a7a75add3ffc257660fd6c7cfea (patch) | |
| tree | c7ef7c4528016fcc84db54d06657a39d4983db26 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | db9e008a0f37bd31ac3d77d650812612b7c873da (diff) | |
KVM: x86/pmu: Setup fixed counters' eventsel during PMU initialization
Set the eventsel for all fixed counters during PMU initialization, the
eventsel is hardcoded and consumed if and only if the counter is supported,
i.e. there is no reason to redo the setup every time the PMU is refreshed.
Configuring all KVM-supported fixed counter also eliminates a potential
pitfall if/when KVM supports discontiguous fixed counters, in which case
configuring only nr_arch_fixed_counters will be insufficient (ignoring the
fact that KVM will need many other changes to support discontiguous fixed
counters).
Tested-by: Dapeng Mi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions