• Like Xu's avatar
    KVM: x86/pmu: Setup pmc->eventsel for fixed PMCs · 76187563
    Like Xu authored
    The current pmc->eventsel for fixed counter is underutilised. The
    pmc->eventsel can be setup for all known available fixed counters
    since we have mapping between fixed pmc index and
    the intel_arch_events array.
    
    Either gp or fixed counter, it will simplify the later checks for
    consistency between eventsel and perf_hw_id.
    Signed-off-by: default avatarLike Xu <likexu@tencent.com>
    Message-Id: <20211130074221.93635-2-likexu@tencent.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    76187563
pmu_intel.c 20.4 KB