aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-05-12 22:27:16 +0000
committerSean Christopherson <[email protected]>2022-07-08 14:57:20 -0700
commit54ad60ba9d2673293c72a7c1c4f092622a1f8789 (patch)
treee6863ffb0bc7bd25c521d37e6aca80be59c39f33 /tools/perf/scripts/python
parentf5223a332f3647a0e3725e9b4a102e9659c84ce4 (diff)
KVM: x86: Add helpers to identify CTL and STATUS MCi MSRs
Add helpers to identify CTL (control) and STATUS MCi MSR types instead of open coding the checks using the offset. Using the offset is perfectly safe, but unintuitive, as understanding what the code does requires knowing that the offset calcuation will not affect the lower three bits. Opportunistically comment the STATUS logic to save readers a trip to Intel's SDM or AMD's APM to understand the "data != 0" check. No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Jim Mattson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions