Home
last modified time | relevance | path

Searched refs:kvm_pmc (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/
Dpmu.h30 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
31 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
32 struct kvm_pmc *(*rdpmc_ecx_to_pmc)(struct kvm_vcpu *vcpu,
34 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, u32 msr);
44 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
51 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
63 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
73 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
81 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
86 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
[all …]
Dpmu.c62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
75 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr()
97 static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, in pmc_reprogram_counter()
142 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
154 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
171 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter()
239 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter()
277 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter()
299 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event()
362 struct kvm_pmc *pmc; in kvm_pmu_rdpmc()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Dpmu.c98 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
155 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled()
160 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc()
187 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc()
191 struct kvm_pmc *counters; in amd_rdpmc_ecx_to_pmc()
207 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
210 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc()
221 struct kvm_pmc *pmc; in amd_pmu_get_msr()
243 struct kvm_pmc *pmc; in amd_pmu_set_msr()
307 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset()
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Dpmu_intel.c45 struct kvm_pmc *pmc; in reprogram_fixed_counters()
102 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled()
109 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc()
133 static struct kvm_pmc *intel_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in intel_rdpmc_ecx_to_pmc()
138 struct kvm_pmc *counters; in intel_rdpmc_ecx_to_pmc()
163 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
193 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc()
196 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc()
208 struct kvm_pmc *pmc; in intel_pmu_get_msr()
248 struct kvm_pmc *pmc; in intel_pmu_set_msr()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dpmu-emul.c19 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc);
49 static struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
64 static bool kvm_pmu_pmc_is_chained(struct kvm_pmc *pmc) in kvm_pmu_pmc_is_chained()
87 static struct kvm_pmc *kvm_pmu_get_canonical_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_canonical_pmc()
95 static struct kvm_pmc *kvm_pmu_get_alternate_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_alternate_pmc()
129 struct kvm_pmc *pmc) in kvm_pmu_get_pair_counter_value()
167 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value()
202 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
218 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
312 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask()
[all …]
/kernel/linux/linux-5.10/include/kvm/
Darm_pmu.h18 struct kvm_pmc { struct
25 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dkvm_host.h416 struct kvm_pmc { struct
443 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; argument
444 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];