diff options
author | Sean Christopherson <seanjc@google.com> | 2023-11-10 05:28:49 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-02-01 20:34:31 +0300 |
commit | be6b067dae1573cf4d53c8b08175d8872d82f030 (patch) | |
tree | 4a001979b038dac7b22aff60b1f2c2380f4184a5 /lib/memory-notifier-error-inject.c | |
parent | f933b88e20150f15787390e2a1754a7e412754ed (diff) | |
download | linux-be6b067dae1573cf4d53c8b08175d8872d82f030.tar.xz |
KVM: x86/pmu: Add common define to capture fixed counters offset
Add a common define to "officially" solidify KVM's split of counters,
i.e. to commit to using bits 31:0 to track general purpose counters and
bits 63:32 to track fixed counters (which only Intel supports). KVM
already bleeds this behavior all over common PMU code, and adding a KVM-
defined macro allows clarifying that the value is a _base_, as oppposed to
the _flag_ that is used to access fixed PMCs via RDPMC (which perf
confusingly calls INTEL_PMC_FIXED_RDPMC_BASE).
No functional change intended.
Link: https://lore.kernel.org/r/20231110022857.1273836-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions