Searched refs:kvm_pmu_cap (Results 1 – 9 of 9) sorted by relevance
33 struct x86_pmu_capability __read_mostly kvm_pmu_cap; variable34 EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_pmu_cap);146 memset(&kvm_pmu_cap, 0, sizeof(kvm_pmu_cap)); in kvm_init_pmu_capability()150 memcpy(&kvm_pmu_cap, &kvm_host_pmu, sizeof(kvm_host_pmu)); in kvm_init_pmu_capability()151 kvm_pmu_cap.version = min(kvm_pmu_cap.version, 2); in kvm_init_pmu_capability()152 kvm_pmu_cap.num_counters_gp = min(kvm_pmu_cap.num_counters_gp, in kvm_init_pmu_capability()154 kvm_pmu_cap.num_counters_fixed = min(kvm_pmu_cap.num_counters_fixed, in kvm_init_pmu_capability()
1514 eax.split.version_id = kvm_pmu_cap.version; in __do_cpuid_func()1515 eax.split.num_counters = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()1516 eax.split.bit_width = kvm_pmu_cap.bit_width_gp; in __do_cpuid_func()1517 eax.split.mask_length = kvm_pmu_cap.events_mask_len; in __do_cpuid_func()1518 edx.split.num_counters_fixed = kvm_pmu_cap.num_counters_fixed; in __do_cpuid_func()1519 edx.split.bit_width_fixed = kvm_pmu_cap.bit_width_fixed; in __do_cpuid_func()1521 if (kvm_pmu_cap.version) in __do_cpuid_func()1525 entry->ebx = kvm_pmu_cap.events_mask; in __do_cpuid_func()1883 ebx.split.num_core_pmc = kvm_pmu_cap.num_counters_gp; in __do_cpuid_func()
196 extern struct x86_pmu_capability kvm_pmu_cap;
7680 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()7686 kvm_pmu_cap.num_counters_gp) in kvm_probe_msr_to_save()7692 kvm_pmu_cap.num_counters_fixed) in kvm_probe_msr_to_save()
478 WARN_ON_ONCE(!eventsel && index < kvm_pmu_cap.num_counters_fixed); in intel_get_fixed_pmc_eventsel()525 kvm_pmu_cap.num_counters_gp); in intel_pmu_refresh()527 kvm_pmu_cap.bit_width_gp); in intel_pmu_refresh()530 kvm_pmu_cap.events_mask_len); in intel_pmu_refresh()555 kvm_pmu_cap.num_counters_fixed); in intel_pmu_refresh()557 kvm_pmu_cap.bit_width_fixed); in intel_pmu_refresh()
404 return boot_cpu_has(X86_FEATURE_PEBS) && kvm_pmu_cap.pebs_ept && in vmx_pebs_supported()
4320 for ( ; i < kvm_pmu_cap.num_counters_gp; i++) { in vmx_recalc_pmu_msr_intercepts()4330 for ( ; i < kvm_pmu_cap.num_counters_fixed; i++) in vmx_recalc_pmu_msr_intercepts()
202 kvm_pmu_cap.num_counters_gp); in amd_pmu_refresh()
753 for ( ; i < kvm_pmu_cap.num_counters_gp; i++) in svm_recalc_pmu_msr_intercepts()5375 if (kvm_pmu_cap.num_counters_gp < AMD64_NUM_COUNTERS_CORE) in svm_set_cpu_caps()5376 kvm_pmu_cap.num_counters_gp = min(AMD64_NUM_COUNTERS, in svm_set_cpu_caps()5377 kvm_pmu_cap.num_counters_gp); in svm_set_cpu_caps()5381 if (kvm_pmu_cap.version != 2 || in svm_set_cpu_caps()