diff options
| author | Like Xu <[email protected]> | 2022-09-19 09:10:08 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-11-09 17:26:54 +0000 |
| commit | 556f3c9ad7c101aa16a43ef4539f3aabc1d7b32e (patch) | |
| tree | 85f71e58ad57f76644835d480629686531e8a4f9 /tools/perf/scripts/python/sched-migration.py | |
| parent | KVM: x86/pmu: Limit the maximum number of supported Intel GP counters (diff) | |
| download | kernel-556f3c9ad7c101aa16a43ef4539f3aabc1d7b32e.tar.gz kernel-556f3c9ad7c101aa16a43ef4539f3aabc1d7b32e.zip | |
KVM: x86/pmu: Limit the maximum number of supported AMD GP counters
The AMD PerfMonV2 specification allows for a maximum of 16 GP counters,
but currently only 6 pairs of MSRs are accepted by KVM.
While AMD64_NUM_COUNTERS_CORE is already equal to 6, increasing without
adjusting msrs_to_save_all[] could result in out-of-bounds accesses.
Therefore introduce a macro (named KVM_AMD_PMC_MAX_GENERIC) to
refer to the number of counters supported by KVM.
Signed-off-by: Like Xu <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
