Searched refs:kvm_pmc (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/arch/x86/kvm/ |
D | pmu.h | 30 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); 46 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask() 53 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter() 65 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event() 75 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter() 83 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp() 88 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed() [all …]
|
D | pmu.c | 62 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() 143 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter() 156 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter() 174 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() 242 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() 280 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 302 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() 365 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() [all …]
|
/Linux-v5.15/arch/x86/kvm/svm/ |
D | pmu.c | 98 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 163 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled() 168 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 195 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc() 199 struct kvm_pmc *counters; in amd_rdpmc_ecx_to_pmc() 215 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 218 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() 229 struct kvm_pmc *pmc; in amd_pmu_get_msr() 251 struct kvm_pmc *pmc; in amd_pmu_set_msr() 315 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset()
|
/Linux-v5.15/arch/arm64/kvm/ |
D | pmu-emul.c | 19 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 …]
|
/Linux-v5.15/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 45 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() 168 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 234 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc() 237 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() 354 struct kvm_pmc *pmc; in intel_pmu_get_msr() 395 struct kvm_pmc *pmc; in intel_pmu_set_msr() [all …]
|
/Linux-v5.15/include/kvm/ |
D | arm_pmu.h | 25 struct kvm_pmc { struct 32 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
|
/Linux-v5.15/arch/x86/include/asm/ |
D | kvm_host.h | 480 struct kvm_pmc { struct 508 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; argument 509 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
|