Home
last modified time | relevance | path

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

/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()
89 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx()
111 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc()
122 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr()
144 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr()
172 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh()
192 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_init()
208 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_reset()
/Linux-v6.1/arch/x86/kvm/vmx/
Dpmu_intel.c38 static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) 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()
71 static void reprogram_counters(struct kvm_pmu *pmu, u64 diff) in reprogram_counters()
85 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in intel_hw_event_available()
108 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in intel_pmc_is_enabled()
118 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_rdpmc_ecx()
130 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); 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()
190 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr()
225 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc()
[all …]
Dvmx.h96 static inline bool intel_pmu_has_perf_global_ctrl(struct kvm_pmu *pmu) in intel_pmu_has_perf_global_ctrl()
668 void intel_pmu_cross_mapped_check(struct kvm_pmu *pmu);
Dvmx.c6978 struct kvm_pmu *pmu = vcpu_to_pmu(&vmx->vcpu); in atomic_switch_perf_msrs()
/Linux-v6.1/arch/x86/kvm/
Dpmu.c93 struct kvm_pmu *pmu = container_of(irq_work, struct kvm_pmu, irq_work); in kvm_pmi_trigger_fn()
101 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in __kvm_perf_overflow()
157 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_reprogram_counter()
298 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in reprogram_counter()
342 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event()
407 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc()
446 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use()
475 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_reset()
483 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_init()
496 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_cleanup()
[all …]
Dpmu.h30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
49 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask()
94 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl()
104 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
118 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
152 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_speculative_in_use()
Dx86.c12349 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
/Linux-v6.1/arch/arm64/kvm/
Dpmu-emul.c62 struct kvm_pmu *pmu; in kvm_pmc_to_vcpu()
66 pmu = container_of(pmc, struct kvm_pmu, pmc[0]); in kvm_pmc_to_vcpu()
177 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_get_counter_value()
269 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_init()
283 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_reset()
300 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_destroy()
328 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_enable_counter_mask()
366 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_disable_counter_mask()
403 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_update_state()
424 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_should_notify_user()
[all …]
/Linux-v6.1/include/kvm/
Darm_pmu.h28 struct kvm_pmu { struct
95 struct kvm_pmu { struct
/Linux-v6.1/arch/x86/events/intel/
Dcore.c4024 struct kvm_pmu *kvm_pmu = (struct kvm_pmu *)data; in intel_guest_get_msrs() local
4057 if (!kvm_pmu || !x86_pmu.pebs_ept) in intel_guest_get_msrs()
4063 .guest = kvm_pmu->ds_area, in intel_guest_get_msrs()
4070 .guest = kvm_pmu->pebs_data_cfg, in intel_guest_get_msrs()
4086 arr[pebs_enable].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs()
4087 arr[global_ctrl].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs()
/Linux-v6.1/arch/arm64/include/asm/
Dkvm_host.h385 struct kvm_pmu pmu;
/Linux-v6.1/arch/x86/include/asm/
Dkvm_host.h510 struct kvm_pmu { struct
850 struct kvm_pmu pmu;