Home
last modified time | relevance | path

Searched refs:kvm_pmu_cap (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.6/arch/x86/kvm/
Dpmu.h179 extern struct x86_pmu_capability kvm_pmu_cap;
196 perf_get_x86_pmu_capability(&kvm_pmu_cap); in kvm_init_pmu_capability()
204 if (!kvm_pmu_cap.num_counters_gp || in kvm_init_pmu_capability()
205 WARN_ON_ONCE(kvm_pmu_cap.num_counters_gp < min_nr_gp_ctrs)) in kvm_init_pmu_capability()
207 else if (is_intel && !kvm_pmu_cap.version) in kvm_init_pmu_capability()
212 memset(&kvm_pmu_cap, 0, sizeof(kvm_pmu_cap)); in kvm_init_pmu_capability()
216 kvm_pmu_cap.version = min(kvm_pmu_cap.version, 2); in kvm_init_pmu_capability()
217 kvm_pmu_cap.num_counters_gp = min(kvm_pmu_cap.num_counters_gp, in kvm_init_pmu_capability()
219 kvm_pmu_cap.num_counters_fixed = min(kvm_pmu_cap.num_counters_fixed, in kvm_init_pmu_capability()
Dcpuid.c985 eax.split.version_id = kvm_pmu_cap.version; in __do_cpuid_func()
986 eax.split.num_counters = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
987 eax.split.bit_width = kvm_pmu_cap.bit_width_gp; in __do_cpuid_func()
988 eax.split.mask_length = kvm_pmu_cap.events_mask_len; in __do_cpuid_func()
989 edx.split.num_counters_fixed = kvm_pmu_cap.num_counters_fixed; in __do_cpuid_func()
990 edx.split.bit_width_fixed = kvm_pmu_cap.bit_width_fixed; in __do_cpuid_func()
992 if (kvm_pmu_cap.version) in __do_cpuid_func()
998 entry->ebx = kvm_pmu_cap.events_mask; in __do_cpuid_func()
1281 ebx.split.num_core_pmc = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
Dpmu.c29 struct x86_pmu_capability __read_mostly kvm_pmu_cap; variable
30 EXPORT_SYMBOL_GPL(kvm_pmu_cap);
Dx86.c7171 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()
7176 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()
7181 kvm_pmu_cap.num_counters_fixed) in kvm_probe_msr_to_save()
/Linux-v6.6/arch/x86/kvm/vmx/
Dpmu_intel.c530 kvm_pmu_cap.num_counters_gp); in intel_pmu_refresh()
532 kvm_pmu_cap.bit_width_gp); in intel_pmu_refresh()
535 kvm_pmu_cap.events_mask_len); in intel_pmu_refresh()
543 kvm_pmu_cap.num_counters_fixed); in intel_pmu_refresh()
545 kvm_pmu_cap.bit_width_fixed); in intel_pmu_refresh()
Dcapabilities.h395 return boot_cpu_has(X86_FEATURE_PEBS) && kvm_pmu_cap.pebs_ept; in vmx_pebs_supported()
/Linux-v6.6/arch/x86/kvm/svm/
Dpmu.c204 kvm_pmu_cap.num_counters_gp); in amd_pmu_refresh()
Dsvm.c5136 if (kvm_pmu_cap.num_counters_gp < AMD64_NUM_COUNTERS_CORE) in svm_set_cpu_caps()
5137 kvm_pmu_cap.num_counters_gp = min(AMD64_NUM_COUNTERS, in svm_set_cpu_caps()
5138 kvm_pmu_cap.num_counters_gp); in svm_set_cpu_caps()
5142 if (kvm_pmu_cap.version != 2 || in svm_set_cpu_caps()