Searched refs:kvm_pmu (Results 1 – 9 of 9) sorted by relevance
| /OK3568_Linux_fs/kernel/arch/x86/kvm/svm/ |
| H A D | pmu.c | 63 static unsigned int get_msr_base(struct kvm_pmu *pmu, enum pmu_type type) in get_msr_base() 114 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 182 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 201 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx() 212 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_rdpmc_ecx_to_pmc() 231 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc() 242 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr() 264 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr() 289 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh() 309 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_init() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/vmx/ |
| H A D | pmu_intel.c | 38 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() 73 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in intel_pmc_perf_hw_id() 105 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in intel_pmc_is_enabled() 113 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() 128 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_rdpmc_ecx() 140 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_rdpmc_ecx_to_pmc() 172 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 182 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr() 204 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/ |
| H A D | pmu.c | 54 struct kvm_pmu *pmu = container_of(irq_work, struct kvm_pmu, irq_work); in kvm_pmi_trigger_fn() 65 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in kvm_perf_overflow() 78 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in kvm_perf_overflow_intr() 187 struct kvm_pmu *pmu = vcpu_to_pmu(pmc->vcpu); in reprogram_gp_counter() 277 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx) in reprogram_counter() 297 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event() 363 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc() 400 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use() 429 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_reset() 437 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_init() [all …]
|
| H A D | pmu.h | 30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 45 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask() 95 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl() 105 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() 119 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc() 144 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx);
|
| H A D | x86.c | 10527 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 51 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 …]
|
| /OK3568_Linux_fs/kernel/include/kvm/ |
| H A D | arm_pmu.h | 30 struct kvm_pmu { struct 65 struct kvm_pmu { struct
|
| /OK3568_Linux_fs/kernel/arch/arm64/include/asm/ |
| H A D | kvm_host.h | 326 struct kvm_pmu pmu;
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | kvm_host.h | 430 struct kvm_pmu { struct 715 struct kvm_pmu pmu;
|