Home
last modified time | relevance | path

Searched refs:pmc_idx (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/x86/kvm/svm/
Dpmu.c26 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument
30 if (pmc_idx >= num_counters) in amd_pmc_idx_to_pmc()
33 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
/linux-6.1.9/arch/x86/kvm/
Dpmu.h30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
203 bool is_vmware_backdoor_pmc(u32 pmc_idx);
Dpmu.c370 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument
372 switch (pmc_idx) { in is_vmware_backdoor_pmc()
/linux-6.1.9/arch/x86/kvm/vmx/
Dpmu_intel.c59 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() argument
61 if (pmc_idx < INTEL_PMC_IDX_FIXED) { in intel_pmc_idx_to_pmc()
62 return get_gp_pmc(pmu, MSR_P6_EVNTSEL0 + pmc_idx, in intel_pmc_idx_to_pmc()
65 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()