Home
last modified time | relevance | path

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

/Linux-v6.1/arch/x86/kvm/
Dpmu.h28 bool (*hw_event_available)(struct kvm_pmc *pmc);
29 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
31 struct kvm_pmc *(*rdpmc_ecx_to_pmc)(struct kvm_vcpu *vcpu,
33 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, u32 msr);
47 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
54 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
66 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
76 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
84 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
[all …]
Dpmu.c86 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
99 static inline void __kvm_perf_overflow(struct kvm_pmc *pmc, bool in_pmi) in __kvm_perf_overflow()
148 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
153 static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, in pmc_reprogram_counter()
217 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
230 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
260 static bool check_pmu_event_filter(struct kvm_pmc *pmc) in check_pmu_event_filter()
296 void reprogram_counter(struct kvm_pmc *pmc) in reprogram_counter()
346 struct kvm_pmc *pmc = static_call(kvm_x86_pmu_pmc_idx_to_pmc)(pmu, bit); in kvm_pmu_handle_event()
408 struct kvm_pmc *pmc; in kvm_pmu_rdpmc()
[all …]
/Linux-v6.1/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()
36 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
74 static bool amd_hw_event_available(struct kvm_pmc *pmc) in amd_hw_event_available()
82 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled()
97 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc()
109 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
112 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc()
123 struct kvm_pmc *pmc; in amd_pmu_get_msr()
145 struct kvm_pmc *pmc; in amd_pmu_set_msr()
212 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset()
/Linux-v6.1/arch/x86/kvm/vmx/
Dpmu_intel.c40 struct kvm_pmc *pmc; in reprogram_fixed_counters()
59 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc()
74 struct kvm_pmc *pmc; in reprogram_counters()
83 static bool intel_hw_event_available(struct kvm_pmc *pmc) in intel_hw_event_available()
106 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled()
127 static struct kvm_pmc *intel_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in intel_rdpmc_ecx_to_pmc()
132 struct kvm_pmc *counters; in intel_rdpmc_ecx_to_pmc()
162 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
223 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc()
226 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc()
[all …]
/Linux-v6.1/arch/arm64/kvm/
Dpmu-emul.c25 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc);
60 static struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
75 static bool kvm_pmu_pmc_is_chained(struct kvm_pmc *pmc) in kvm_pmu_pmc_is_chained()
98 static struct kvm_pmc *kvm_pmu_get_canonical_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_canonical_pmc()
106 static struct kvm_pmc *kvm_pmu_get_alternate_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_alternate_pmc()
140 struct kvm_pmc *pmc) in kvm_pmu_get_pair_counter_value()
178 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value()
219 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
235 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
329 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask()
[all …]
/Linux-v6.1/include/kvm/
Darm_pmu.h18 struct kvm_pmc { struct
31 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
/Linux-v6.1/arch/x86/include/asm/
Dkvm_host.h488 struct kvm_pmc { struct
524 struct kvm_pmc gp_counters[KVM_INTEL_PMC_MAX_GENERIC]; argument
525 struct kvm_pmc fixed_counters[KVM_PMC_MAX_FIXED];