• Like Xu's avatar
    KVM: x86/pmu: Drop amd_event_mapping[] in the KVM context · 7aadaa98
    Like Xu authored
    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: default avatarLike Xu <likexu@tencent.com>
    Message-Id: <20220518132512.37864-12-likexu@tencent.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    7aadaa98
kvm-x86-pmu-ops.h 933 Bytes