Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dpmu.h161 extern struct x86_pmu_capability kvm_pmu_cap;
178 perf_get_x86_pmu_capability(&kvm_pmu_cap); in kvm_init_pmu_capability()
186 if (!kvm_pmu_cap.num_counters_gp || in kvm_init_pmu_capability()
187 WARN_ON_ONCE(kvm_pmu_cap.num_counters_gp < min_nr_gp_ctrs)) in kvm_init_pmu_capability()
189 else if (is_intel && !kvm_pmu_cap.version) in kvm_init_pmu_capability()
194 memset(&kvm_pmu_cap, 0, sizeof(kvm_pmu_cap)); in kvm_init_pmu_capability()
198 kvm_pmu_cap.version = min(kvm_pmu_cap.version, 2); in kvm_init_pmu_capability()
199 kvm_pmu_cap in kvm_init_pmu_capability()
[all...]
H A Dcpuid.c1000 eax.split.version_id = kvm_pmu_cap.version; in __do_cpuid_func()
1001 eax.split.num_counters = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
1002 eax.split.bit_width = kvm_pmu_cap.bit_width_gp; in __do_cpuid_func()
1003 eax.split.mask_length = kvm_pmu_cap.events_mask_len; in __do_cpuid_func()
1004 edx.split.num_counters_fixed = kvm_pmu_cap.num_counters_fixed; in __do_cpuid_func()
1005 edx.split.bit_width_fixed = kvm_pmu_cap.bit_width_fixed; in __do_cpuid_func()
1007 if (kvm_pmu_cap.version) in __do_cpuid_func()
1013 entry->ebx = kvm_pmu_cap.events_mask; in __do_cpuid_func()
1296 ebx.split.num_core_pmc = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
H A Dpmu.c29 struct x86_pmu_capability __read_mostly kvm_pmu_cap; variable
30 EXPORT_SYMBOL_GPL(kvm_pmu_cap); variable
H A Dx86.c7177 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()
7182 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()
7187 kvm_pmu_cap.num_counters_fixed) in kvm_probe_msr_to_save()
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/
H A 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()
H A Dcapabilities.h395 return boot_cpu_has(X86_FEATURE_PEBS) && kvm_pmu_cap.pebs_ept; in vmx_pebs_supported()
/kernel/linux/linux-6.6/arch/x86/kvm/svm/
H A Dpmu.c204 kvm_pmu_cap.num_counters_gp); in amd_pmu_refresh()
H A Dsvm.c5138 if (kvm_pmu_cap.num_counters_gp < AMD64_NUM_COUNTERS_CORE) in svm_set_cpu_caps()
5139 kvm_pmu_cap.num_counters_gp = min(AMD64_NUM_COUNTERS, in svm_set_cpu_caps()
5140 kvm_pmu_cap.num_counters_gp); in svm_set_cpu_caps()
5144 if (kvm_pmu_cap.version != 2 || in svm_set_cpu_caps()

Completed in 28 milliseconds