Home
last modified time | relevance | path

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

/linux-6.14.4/arch/x86/kvm/
Dpmu.h32 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);
80 static inline struct kvm_pmc *kvm_pmc_idx_to_pmc(struct kvm_pmu *pmu, int idx) in kvm_pmc_idx_to_pmc()
98 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
105 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
118 void pmc_write_counter(struct kvm_pmc *pmc, u64 val);
120 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
125 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
140 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
154 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
[all …]
Dpmu.c99 static inline void __kvm_perf_overflow(struct kvm_pmc *pmc, bool in_pmi) in __kvm_perf_overflow()
130 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
145 static u64 pmc_get_pebs_precise_level(struct kvm_pmc *pmc) in pmc_get_pebs_precise_level()
167 static u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
176 static int pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, u64 config, in pmc_reprogram_counter()
230 static bool pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
256 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
278 static void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
288 static void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
296 static void pmc_update_sample_period(struct kvm_pmc *pmc) in pmc_update_sample_period()
[all …]
/linux-6.14.4/arch/arm64/kvm/
Dpmu-emul.c25 static void kvm_pmu_create_perf_event(struct kvm_pmc *pmc);
26 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc);
27 static bool kvm_pmu_counter_is_enabled(struct kvm_pmc *pmc);
29 static struct kvm_vcpu *kvm_pmc_to_vcpu(const struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
34 static struct kvm_pmc *kvm_vcpu_idx_to_pmc(struct kvm_vcpu *vcpu, int cnt_idx) in kvm_vcpu_idx_to_pmc()
83 static bool kvm_pmc_is_64bit(struct kvm_pmc *pmc) in kvm_pmc_is_64bit()
91 static bool kvm_pmc_has_64bit_overflow(struct kvm_pmc *pmc) in kvm_pmc_has_64bit_overflow()
103 static bool kvm_pmu_counter_can_chain(struct kvm_pmc *pmc) in kvm_pmu_counter_can_chain()
119 static u64 kvm_pmc_read_evtreg(const struct kvm_pmc *pmc) in kvm_pmc_read_evtreg()
124 static u64 kvm_pmu_get_pmc_value(struct kvm_pmc *pmc) in kvm_pmu_get_pmc_value()
[all …]
/linux-6.14.4/arch/x86/kvm/svm/
Dpmu.c28 static struct kvm_pmc *amd_pmu_get_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmu_get_pmc()
38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
87 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc()
93 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
96 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc()
130 struct kvm_pmc *pmc; in amd_pmu_get_msr()
152 struct kvm_pmc *pmc; in amd_pmu_set_msr()
/linux-6.14.4/arch/riscv/kvm/
Dvcpu_pmu.c37 static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc) in kvm_pmu_get_sample_period()
78 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
204 struct kvm_pmc *pmc; in pmu_fw_ctr_read_hi()
234 struct kvm_pmc *pmc; in pmu_ctr_read()
272 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_riscv_pmu_overflow()
309 static long kvm_pmu_create_perf_event(struct kvm_pmc *pmc, struct perf_event_attr *attr, in kvm_pmu_create_perf_event()
486 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_start()
563 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_stop()
664 struct kvm_pmc *pmc = NULL; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
762 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_init()
[all …]
/linux-6.14.4/arch/x86/kvm/vmx/
Dpmu_intel.c39 struct kvm_pmc *pmc; in reprogram_fixed_counters()
58 static struct kvm_pmc *intel_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in intel_rdpmc_ecx_to_pmc()
63 struct kvm_pmc *counters; in intel_rdpmc_ecx_to_pmc()
124 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
181 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc()
184 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc()
301 struct kvm_pmc *pmc; in intel_pmu_get_msr()
344 struct kvm_pmc *pmc; in intel_pmu_set_msr()
710 struct kvm_pmc *pmc = NULL; in intel_pmu_cross_mapped_check()
/linux-6.14.4/arch/riscv/include/asm/
Dkvm_vcpu_pmu.h31 struct kvm_pmc { struct
45 struct kvm_pmc pmc[RISCV_KVM_MAX_COUNTERS]; argument
/linux-6.14.4/include/kvm/
Darm_pmu.h16 struct kvm_pmc { struct
29 struct kvm_pmc pmc[KVM_ARMV8_PMU_MAX_COUNTERS]; argument
/linux-6.14.4/arch/x86/include/asm/
Dkvm_host.h504 struct kvm_pmc { struct
563 struct kvm_pmc gp_counters[KVM_MAX_NR_GP_COUNTERS];
564 struct kvm_pmc fixed_counters[KVM_MAX_NR_FIXED_COUNTERS];