summaryrefslogtreecommitdiffstats
path: root/samples/Makefile
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2022-05-18 15:25:12 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-08 10:49:06 +0200
commit7aadaa988c5ea0894b3bbea598e4da56f078a289 (patch)
treeb94ef4ed14187483b2f90711fb980d35adf8896f /samples/Makefile
parentKVM: x86/pmu: Replace pmc_perf_hw_id() with perf_get_hw_event_config() (diff)
downloadlinux-7aadaa988c5ea0894b3bbea598e4da56f078a289.tar.xz
linux-7aadaa988c5ea0894b3bbea598e4da56f078a289.zip
KVM: x86/pmu: Drop amd_event_mapping[] in the KVM context
All gp or fixed counters have been reprogrammed using PERF_TYPE_RAW, which means that the table that maps perf_hw_id to event select values is no longer useful, at least for AMD. For Intel, the logic to check if the pmu event reported by Intel cpuid is not available is still required, in which case pmc_perf_hw_id() could be renamed to hw_event_is_unavail() and a bool value is returned to replace the semantics of "PERF_COUNT_HW_MAX+1". Signed-off-by: Like Xu <likexu@tencent.com> Message-Id: <20220518132512.37864-12-likexu@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'samples/Makefile')
0 files changed, 0 insertions, 0 deletions