Searched refs:kvm_pmu_cap (Results 1 – 8 of 8) sorted by relevance
180 extern struct x86_pmu_capability kvm_pmu_cap;198 perf_get_x86_pmu_capability(&kvm_pmu_cap); in kvm_init_pmu_capability()206 if (!kvm_pmu_cap.num_counters_gp || in kvm_init_pmu_capability()207 WARN_ON_ONCE(kvm_pmu_cap.num_counters_gp < min_nr_gp_ctrs)) in kvm_init_pmu_capability()209 else if (is_intel && !kvm_pmu_cap.version) in kvm_init_pmu_capability()214 memset(&kvm_pmu_cap, 0, sizeof(kvm_pmu_cap)); in kvm_init_pmu_capability()218 kvm_pmu_cap.version = min(kvm_pmu_cap.version, 2); in kvm_init_pmu_capability()219 kvm_pmu_cap.num_counters_gp = min(kvm_pmu_cap.num_counters_gp, in kvm_init_pmu_capability()221 kvm_pmu_cap.num_counters_fixed = min(kvm_pmu_cap.num_counters_fixed, in kvm_init_pmu_capability()
1438 eax.split.version_id = kvm_pmu_cap.version; in __do_cpuid_func()1439 eax.split.num_counters = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()1440 eax.split.bit_width = kvm_pmu_cap.bit_width_gp; in __do_cpuid_func()1441 eax.split.mask_length = kvm_pmu_cap.events_mask_len; in __do_cpuid_func()1442 edx.split.num_counters_fixed = kvm_pmu_cap.num_counters_fixed; in __do_cpuid_func()1443 edx.split.bit_width_fixed = kvm_pmu_cap.bit_width_fixed; in __do_cpuid_func()1445 if (kvm_pmu_cap.version) in __do_cpuid_func()1449 entry->ebx = kvm_pmu_cap.events_mask; in __do_cpuid_func()1774 ebx.split.num_core_pmc = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
29 struct x86_pmu_capability __read_mostly kvm_pmu_cap; variable30 EXPORT_SYMBOL_GPL(kvm_pmu_cap);
7430 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()7436 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()7442 kvm_pmu_cap.num_counters_fixed) in kvm_probe_msr_to_save()
447 WARN_ON_ONCE(!eventsel && index < kvm_pmu_cap.num_counters_fixed); in intel_get_fixed_pmc_eventsel()491 kvm_pmu_cap.num_counters_gp); in intel_pmu_refresh()493 kvm_pmu_cap.bit_width_gp); in intel_pmu_refresh()496 kvm_pmu_cap.events_mask_len); in intel_pmu_refresh()504 kvm_pmu_cap.num_counters_fixed); in intel_pmu_refresh()506 kvm_pmu_cap.bit_width_fixed); in intel_pmu_refresh()
393 return boot_cpu_has(X86_FEATURE_PEBS) && kvm_pmu_cap.pebs_ept; in vmx_pebs_supported()
199 kvm_pmu_cap.num_counters_gp); in amd_pmu_refresh()
5383 if (kvm_pmu_cap.num_counters_gp < AMD64_NUM_COUNTERS_CORE) in svm_set_cpu_caps()5384 kvm_pmu_cap.num_counters_gp = min(AMD64_NUM_COUNTERS, in svm_set_cpu_caps()5385 kvm_pmu_cap.num_counters_gp); in svm_set_cpu_caps()5389 if (kvm_pmu_cap.version != 2 || in svm_set_cpu_caps()