Searched refs:pmc_idx (Results 1 – 4 of 4) sorted by relevance
/arch/x86/kvm/ |
D | pmu.h | 28 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 117 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx); 132 bool is_vmware_backdoor_pmc(u32 pmc_idx);
|
D | pmu.c | 229 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx) in reprogram_counter() argument 231 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 239 int idx = pmc_idx - INTEL_PMC_IDX_FIXED; in reprogram_counter() 273 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument 275 switch (pmc_idx) { in is_vmware_backdoor_pmc()
|
D | pmu_amd.c | 182 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument 192 pmc_idx *= 2; in amd_pmc_idx_to_pmc() 195 return get_gp_pmc_amd(pmu, base + pmc_idx, PMU_TYPE_COUNTER); in amd_pmc_idx_to_pmc()
|
/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 106 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() argument 108 if (pmc_idx < INTEL_PMC_IDX_FIXED) in intel_pmc_idx_to_pmc() 109 return get_gp_pmc(pmu, MSR_P6_EVNTSEL0 + pmc_idx, in intel_pmc_idx_to_pmc() 112 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()
|