Home
last modified time | relevance | path

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

/Linux-v5.15/arch/x86/kvm/svm/
Dpmu.c47 static unsigned int get_msr_base(struct kvm_pmu *pmu, enum pmu_type type) in get_msr_base()
98 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
137 static unsigned amd_find_arch_event(struct kvm_pmu *pmu, in amd_find_arch_event()
168 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc()
187 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx()
198 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_rdpmc_ecx_to_pmc()
217 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc()
228 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr()
250 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr()
277 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh()
[all …]
/Linux-v5.15/arch/x86/kvm/
Dpmu.h27 unsigned (*find_arch_event)(struct kvm_pmu *pmu, u8 event_select,
31 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
48 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask()
98 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl()
108 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
122 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
147 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx);
Dpmu.c52 struct kvm_pmu *pmu = container_of(irq_work, struct kvm_pmu, irq_work); in kvm_pmi_trigger_fn()
63 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in kvm_perf_overflow()
76 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in kvm_perf_overflow_intr()
278 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx) in reprogram_counter()
298 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event()
364 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc()
404 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use()
433 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_reset()
441 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_init()
453 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_speculative_in_use()
[all …]
Dx86.c11167 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
/Linux-v5.15/arch/x86/kvm/vmx/
Dpmu_intel.c38 static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) in reprogram_fixed_counters()
60 static void global_ctrl_changed(struct kvm_pmu *pmu, u64 data) in global_ctrl_changed()
71 static unsigned intel_find_arch_event(struct kvm_pmu *pmu, in intel_find_arch_event()
104 struct kvm_pmu *pmu = pmc_to_pmu(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()
124 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_rdpmc_ecx()
136 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); 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()
213 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr()
236 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc()
[all …]
/Linux-v5.15/arch/arm64/kvm/
Dpmu-emul.c51 struct kvm_pmu *pmu; in kvm_pmc_to_vcpu()
55 pmu = container_of(pmc, struct kvm_pmu, pmc[0]); in kvm_pmc_to_vcpu()
166 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_get_counter_value()
252 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_init()
266 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_reset()
283 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_destroy()
311 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_enable_counter_mask()
346 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_disable_counter_mask()
383 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_update_state()
404 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_should_notify_user()
[all …]
/Linux-v5.15/include/kvm/
Darm_pmu.h30 struct kvm_pmu { struct
65 struct kvm_pmu { struct
/Linux-v5.15/arch/arm64/include/asm/
Dkvm_host.h338 struct kvm_pmu pmu;
/Linux-v5.15/arch/x86/include/asm/
Dkvm_host.h495 struct kvm_pmu { struct
804 struct kvm_pmu pmu;