diff options
author | Like Xu <[email protected]> | 2023-02-14 13:07:48 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-06 16:04:31 -0700 |
commit | 649bccd7fac98225525c79cf4b1cecc4bafdfc54 (patch) | |
tree | 0b4f2106e08187685229d0c731120768c73767c7 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 8bca8c5ce40b03862d782b9991da146909199327 (diff) |
KVM: x86/pmu: Rewrite reprogram_counters() to improve performance
A valid pmc is always tested before using pmu->reprogram_pmi. Eliminate
this part of the redundancy by setting the counter's bitmask directly,
and in addition, trigger KVM_REQ_PMU only once to save more cpu cycles.
Signed-off-by: Like Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions