Searched refs:pmc_idx (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/arch/x86/kvm/ |
D | pmu.h | 27 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 108 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx); 123 bool is_vmware_backdoor_pmc(u32 pmc_idx);
|
D | pmu.c | 235 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx) in reprogram_counter() argument 237 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 245 int idx = pmc_idx - INTEL_PMC_IDX_FIXED; in reprogram_counter() 279 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument 281 switch (pmc_idx) { in is_vmware_backdoor_pmc()
|
D | pmu_amd.c | 160 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument 170 pmc_idx *= 2; in amd_pmc_idx_to_pmc() 173 return get_gp_pmc_amd(pmu, base + pmc_idx, PMU_TYPE_COUNTER); in amd_pmc_idx_to_pmc()
|
/Linux-v5.4/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 101 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() argument 103 if (pmc_idx < INTEL_PMC_IDX_FIXED) in intel_pmc_idx_to_pmc() 104 return get_gp_pmc(pmu, MSR_P6_EVNTSEL0 + pmc_idx, in intel_pmc_idx_to_pmc() 107 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()
|