diff options
author | Sean Christopherson <[email protected]> | 2023-01-24 23:49:03 +0000 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-01-26 18:03:42 -0800 |
commit | c3531edc79a7adbe4451d34084e8bf227c022872 (patch) | |
tree | 7bd54629ac1e9333760c2a888dc20be02d3faa65 /tools/perf/scripts/python/stackcollapse.py | |
parent | 2374b7310b662e29e3468d510bfaded60fbae99c (diff) |
KVM: x86/pmu: Don't tell userspace to save PMU MSRs if PMU is disabled
Omit all PMU MSRs from the "MSRs to save" list if the PMU is disabled so
that userspace doesn't waste time saving and restoring dummy values. KVM
provides "error" semantics (read zeros, drop writes) for such known-but-
unsupported MSRs, i.e. has fudged around this issue for quite some time.
Keep the "error" semantics as-is for now, the logic will be cleaned up in
a separate patch.
Cc: Aaron Lewis <[email protected]>
Cc: Weijiang Yang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions