Lines Matching defs:ms_hyperv
40 struct ms_hyperv_info ms_hyperv;
74 if (hv_is_synic_msr(reg) && ms_hyperv.paravisor_present)
84 if (hv_is_synic_msr(reg) && ms_hyperv.paravisor_present) {
115 if (WARN_ON(!ms_hyperv.paravisor_present || !hv_is_synic_msr(reg)))
125 if (WARN_ON(!ms_hyperv.paravisor_present || !hv_is_synic_msr(reg)))
166 if (ms_hyperv.hints & HV_DEPRECATING_AEOI_RECOMMENDED)
310 if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE))
414 if (!ms_hyperv.paravisor_present && hv_isolation_type_snp()) {
529 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES);
530 ms_hyperv.priv_high = cpuid_ebx(HYPERV_CPUID_FEATURES);
531 ms_hyperv.ext_features = cpuid_ecx(HYPERV_CPUID_FEATURES);
532 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES);
533 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO);
538 ms_hyperv.features, ms_hyperv.priv_high,
539 ms_hyperv.ext_features, ms_hyperv.hints,
540 ms_hyperv.misc_features);
542 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS);
543 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS);
546 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index);
554 ms_hyperv.hints |= HV_DEPRECATING_AEOI_RECOMMENDED;
556 if (ms_hyperv.hints & HV_X64_HYPERV_NESTED) {
569 ms_hyperv.confidential_vmbus_available =
571 ms_hyperv.msi_ext_dest_id =
574 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS &&
575 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) {
581 if (ms_hyperv.priv_high & HV_ISOLATION) {
582 ms_hyperv.isolation_config_a = cpuid_eax(HYPERV_CPUID_ISOLATION_CONFIG);
583 ms_hyperv.isolation_config_b = cpuid_ebx(HYPERV_CPUID_ISOLATION_CONFIG);
585 if (ms_hyperv.shared_gpa_boundary_active)
586 ms_hyperv.shared_gpa_boundary =
587 BIT_ULL(ms_hyperv.shared_gpa_boundary_bits);
590 ms_hyperv.isolation_config_a, ms_hyperv.isolation_config_b);
595 if (!ms_hyperv.paravisor_present)
601 ms_hyperv.hints &= ~HV_X64_APIC_ACCESS_RECOMMENDED;
603 if (!ms_hyperv.paravisor_present) {
611 ms_hyperv.features &= ~HV_MSR_REFERENCE_TSC_AVAILABLE;
619 if (!(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT))
623 ms_hyperv.misc_features &= ~HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE;
626 ms_hyperv.hints &= ~HV_X64_REMOTE_TLB_FLUSH_RECOMMENDED;
634 ms_hyperv.nested_features =
637 ms_hyperv.nested_features);
641 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS &&
642 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) {
679 if (ms_hyperv.features & HV_ACCESS_TSC_INVARIANT) {
702 ms_hyperv.paravisor_present)
714 if (ms_hyperv.features & HV_ACCESS_REENLIGHTENMENT) {
724 (!ms_hyperv.paravisor_present && hv_isolation_type_snp()))
753 !(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT))
778 return ms_hyperv.msi_ext_dest_id;