/kernel/linux/linux-6.6/arch/x86/kvm/svm/ |
H A D | pmu.c | 28 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 83 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_rdpmc_ecx() 99 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_msr_idx_to_pmc() 110 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_is_valid_msr() 133 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_get_msr() 155 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_set_msr() 183 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_refresh() 222 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in amd_pmu_init()
|
/kernel/linux/linux-6.6/arch/x86/kvm/ |
H A D | pmu.h | 23 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 44 static inline bool kvm_pmu_has_perf_global_ctrl(struct kvm_pmu *pmu) in kvm_pmu_has_perf_global_ctrl() 60 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask() 93 static inline bool kvm_valid_perf_global_ctrl(struct kvm_pmu *pmu, in kvm_valid_perf_global_ctrl() 103 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() 117 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() 211 static inline void reprogram_counters(struct kvm_pmu *pmu, u64 diff) in reprogram_counters() 230 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_is_globally_enabled()
|
H A D | pmu.c | 52 * kvm_pmu"; 98 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in __kvm_perf_overflow() 168 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_reprogram_counter() 206 pr_debug_ratelimited("kvm_pmu: event creation failed %ld for pmc->idx = %d\n", in pmc_reprogram_counter() 401 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in reprogram_counter() 456 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_handle_event() 522 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_rdpmc() 569 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_mark_pmc_in_use() 578 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_pmu_get_msr() 603 struct kvm_pmu *pm in kvm_pmu_set_msr() [all...] |
H A D | x86.c | 12299 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
|
/kernel/linux/linux-5.10/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 *pm in amd_pmu_init() [all...] |
/kernel/linux/linux-5.10/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 *pm in intel_msr_idx_to_pmc() [all...] |
/kernel/linux/linux-5.10/arch/x86/kvm/ |
H A D | pmu.c | 32 * kvm_pmu"; 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() 134 pr_debug_ratelimited("kvm_pmu: event creation failed %ld for pmc->idx = %d\n", in pmc_reprogram_counter() 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 *pm in kvm_pmu_rdpmc() [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 | 10605 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in kvm_arch_sched_in()
|
/kernel/linux/linux-6.6/arch/riscv/kvm/ |
H A D | vcpu_pmu.c | 157 static int kvm_pmu_get_programmable_pmc_index(struct kvm_pmu *kvpmu, unsigned long eidx, in kvm_pmu_get_programmable_pmc_index() 186 static int pmu_get_pmc_index(struct kvm_pmu *pmu, unsigned long eidx, in pmu_get_pmc_index() 202 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in pmu_ctr_read() 222 static int kvm_pmu_validate_counter_mask(struct kvm_pmu *kvpmu, unsigned long ctr_base, in kvm_pmu_validate_counter_mask() 265 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_riscv_vcpu_pmu_incr_fw() 282 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_riscv_vcpu_pmu_read_hpm() 316 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_riscv_vcpu_pmu_num_ctrs() 326 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_riscv_vcpu_pmu_ctr_info() 342 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_riscv_vcpu_pmu_ctr_start() 398 struct kvm_pmu *kvpm in kvm_riscv_vcpu_pmu_ctr_stop() [all...] |
H A D | vcpu_sbi_pmu.c | 21 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_sbi_ext_pmu_handler() 76 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_sbi_ext_pmu_probe()
|
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/ |
H A D | pmu_intel.c | 71 static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) in reprogram_fixed_counters() 92 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() 106 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in intel_hw_event_available() 130 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_rdpmc_ecx() 142 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_rdpmc_ecx_to_pmc() 174 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 202 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_is_valid_msr() 233 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_msr_idx_to_pmc() 257 struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); in intel_pmu_create_guest_lbr_event() 350 struct kvm_pmu *pm in intel_pmu_get_msr() [all...] |
H A D | vmx.h | 673 void intel_pmu_cross_mapped_check(struct kvm_pmu *pmu);
|
H A D | vmx.c | 7141 struct kvm_pmu *pmu = vcpu_to_pmu(&vmx->vcpu); in atomic_switch_perf_msrs()
|
/kernel/linux/linux-5.10/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 *pm in kvm_pmu_should_notify_user() [all...] |
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | kvm_vcpu_pmu.h | 42 struct kvm_pmu { struct 92 struct kvm_pmu { struct
|
H A D | kvm_host.h | 246 struct kvm_pmu pmu_context;
|
/kernel/linux/linux-5.10/include/kvm/ |
H A D | arm_pmu.h | 23 struct kvm_pmu { struct 61 struct kvm_pmu { struct
|
/kernel/linux/linux-6.6/include/kvm/ |
H A D | arm_pmu.h | 27 struct kvm_pmu { struct 106 struct kvm_pmu { struct
|
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | pmu-emul.c | 217 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_vcpu_init() 338 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_update_state() 359 struct kvm_pmu *pmu = &vcpu->arch.pmu; in kvm_pmu_should_notify_user()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | kvm_host.h | 335 struct kvm_pmu pmu;
|
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | core.c | 4060 struct kvm_pmu *kvm_pmu = (struct kvm_pmu *)data; in intel_guest_get_msrs() local 4098 if (!kvm_pmu || !x86_pmu.pebs_ept) in intel_guest_get_msrs() 4104 .guest = kvm_pmu->ds_area, in intel_guest_get_msrs() 4111 .guest = kvm_pmu->pebs_data_cfg, in intel_guest_get_msrs() 4127 arr[pebs_enable].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs() 4128 arr[global_ctrl].guest &= ~kvm_pmu->host_cross_mapped_mask; in intel_guest_get_msrs()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | kvm_host.h | 430 struct kvm_pmu { struct 716 struct kvm_pmu pmu;
|
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | kvm_host.h | 556 struct kvm_pmu pmu;
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | kvm_host.h | 515 struct kvm_pmu { struct 925 struct kvm_pmu pmu;
|