diff options
author | 2024-01-09 15:02:31 -0800 | |
---|---|---|
committer | 2024-01-30 15:28:02 -0800 | |
commit | a634c76b2c1a642d11f5d6e1810181daedcbe0ab (patch) | |
tree | 4a5073446321b90a64a76715dd0fa9836d24dd3a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | KVM: x86/pmu: Treat "fixed" PMU type in RDPMC as index as a value, not flag (diff) | |
download | wireguard-linux-a634c76b2c1a642d11f5d6e1810181daedcbe0ab.tar.xz wireguard-linux-a634c76b2c1a642d11f5d6e1810181daedcbe0ab.zip |
KVM: x86/pmu: Explicitly check for RDPMC of unsupported Intel PMC types
Explicitly check for attempts to read unsupported PMC types instead of
letting the bounds check fail. Functionally, letting the check fail is
ok, but it's unnecessarily subtle and does a poor job of documenting the
architectural behavior that KVM is emulating.
Reviewed-by: Dapeng MiĀ <dapeng1.mi@linux.intel.com>
Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions