Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
129 static unsigned amd_find_arch_event(struct kvm_pmu *pmu, in amd_find_arch_event()
160 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc()
179 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx()
190 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_rdpmc_ecx_to_pmc()
209 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc()
220 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr()
242 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr()
269 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh()
[all …]
/kernel/linux/linux-5.10/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()
163 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
173 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr()
195 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc()
[all …]
/kernel/linux/linux-5.10/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);
46 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask()
96 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl()
106 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
120 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
145 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()
275 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx) in reprogram_counter()
295 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event()
361 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc()
398 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use()
427 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_reset()
435 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_init()
447 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_speculative_in_use()
[all …]
Dx86.c10414 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
/kernel/linux/linux-5.10/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()
384 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_update_state()
405 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_should_notify_user()
[all …]
/kernel/linux/linux-5.10/include/kvm/
Darm_pmu.h23 struct kvm_pmu { struct
61 struct kvm_pmu { struct
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkvm_host.h335 struct kvm_pmu pmu;
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dkvm_host.h430 struct kvm_pmu { struct
714 struct kvm_pmu pmu;