Home
last modified time | relevance | path

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

/linux/arch/x86/kvm/
H A Dpmu.h47 static inline bool kvm_pmu_has_perf_global_ctrl(struct kvm_pmu *pmu) in kvm_pmu_has_perf_global_ctrl()
75 static inline struct kvm_pmc *kvm_pmc_idx_to_pmc(struct kvm_pmu *pmu, int idx) in kvm_pmc_idx_to_pmc()
95 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask()
125 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl()
135 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
149 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
165 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_is_locally_enabled()
179 void kvm_pmu_recalc_pmc_emulation(struct kvm_pmu *pmu, struct kvm_pmc *pmc);
189 static inline void reprogram_counters(struct kvm_pmu *pmu, u64 diff) in reprogram_counters()
208 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_is_globally_enabled()
H A Dpmu.c158 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in __kvm_perf_overflow()
237 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_reprogram_counter()
503 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in reprogram_counter()
566 void kvm_pmu_recalc_pmc_emulation(struct kvm_pmu *pmu, struct kvm_pmc *pmc) in kvm_pmu_recalc_pmc_emulation()
591 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event()
680 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc()
727 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use()
736 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_get_msr()
762 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_set_msr()
825 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_reset()
[all …]
/linux/arch/x86/kvm/svm/
H A 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()
78 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_check_rdpmc_early()
95 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc()
106 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_msr()
130 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr()
152 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr()
179 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh()
217 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_init()
/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.c57 static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) in reprogram_fixed_counters()
82 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_rdpmc_ecx_to_pmc()
144 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc()
188 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr()
219 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc()
246 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_pmu_create_guest_lbr_event()
342 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_pmu_get_msr()
385 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_pmu_set_msr()
493 static void intel_pmu_enable_fixed_counter_bits(struct kvm_pmu *pmu, u64 bits) in intel_pmu_enable_fixed_counter_bits()
503 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_pmu_refresh()
[all …]
H A Dvmx.h675 void intel_pmu_cross_mapped_check(struct kvm_pmu *pmu);
/linux/arch/riscv/include/asm/
H A Dkvm_host.h268 struct kvm_pmu pmu_context;
/linux/arch/arm64/kvm/
H A Dpmu-emul.c255 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_init()
398 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_update_state()
416 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_should_notify_user()
/linux/arch/x86/events/intel/
H A Dcore.c4725 struct kvm_pmu *kvm_pmu = (struct kvm_pmu *)data; in intel_guest_get_msrs() local
4763 if (!kvm_pmu || !x86_pmu.pebs_ept) in intel_guest_get_msrs()
4769 .guest = kvm_pmu->ds_area, in intel_guest_get_msrs()
4776 .guest = kvm_pmu->pebs_data_cfg, in intel_guest_get_msrs()
4784 .guest = pebs_mask & ~cpuc->intel_ctrl_host_mask & kvm_pmu->pebs_enable, in intel_guest_get_msrs()
4792 arr[pebs_enable].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs()
4793 arr[global_ctrl].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs()
/linux/arch/x86/include/asm/
H A Dkvm_host.h554 struct kvm_pmu { struct
1002 struct kvm_pmu pmu;
/linux/arch/arm64/include/asm/
H A Dkvm_host.h870 struct kvm_pmu pmu;