Lines Matching refs:ms_hyperv
39 struct ms_hyperv_info ms_hyperv; variable
73 if (hv_is_synic_msr(reg) && ms_hyperv.paravisor_present) in hv_get_non_nested_msr()
83 if (hv_is_synic_msr(reg) && ms_hyperv.paravisor_present) { in hv_set_non_nested_msr()
114 if (WARN_ON(!ms_hyperv.paravisor_present || !hv_is_synic_msr(reg))) in hv_para_get_synic_register()
124 if (WARN_ON(!ms_hyperv.paravisor_present || !hv_is_synic_msr(reg))) in hv_para_set_synic_register()
164 if (ms_hyperv.hints & HV_DEPRECATING_AEOI_RECOMMENDED) in DEFINE_IDTENTRY_SYSVEC()
318 if (!(ms_hyperv.features & HV_MSR_REFERENCE_TSC_AVAILABLE)) in x86_setup_ops_for_tsc_pg_clock()
422 if (!ms_hyperv.paravisor_present && hv_isolation_type_snp()) { in hv_smp_prepare_cpus()
515 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
516 ms_hyperv.priv_high = cpuid_ebx(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
517 ms_hyperv.ext_features = cpuid_ecx(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
518 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
519 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO); in ms_hyperv_init_platform()
524 ms_hyperv.features, ms_hyperv.priv_high, in ms_hyperv_init_platform()
525 ms_hyperv.ext_features, ms_hyperv.hints, in ms_hyperv_init_platform()
526 ms_hyperv.misc_features); in ms_hyperv_init_platform()
528 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS); in ms_hyperv_init_platform()
529 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS); in ms_hyperv_init_platform()
532 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index); in ms_hyperv_init_platform()
540 ms_hyperv.hints |= HV_DEPRECATING_AEOI_RECOMMENDED; in ms_hyperv_init_platform()
542 if (ms_hyperv.hints & HV_X64_HYPERV_NESTED) { in ms_hyperv_init_platform()
555 ms_hyperv.confidential_vmbus_available = in ms_hyperv_init_platform()
557 ms_hyperv.msi_ext_dest_id = in ms_hyperv_init_platform()
560 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS && in ms_hyperv_init_platform()
561 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { in ms_hyperv_init_platform()
567 if (ms_hyperv.priv_high & HV_ISOLATION) { in ms_hyperv_init_platform()
568 ms_hyperv.isolation_config_a = cpuid_eax(HYPERV_CPUID_ISOLATION_CONFIG); in ms_hyperv_init_platform()
569 ms_hyperv.isolation_config_b = cpuid_ebx(HYPERV_CPUID_ISOLATION_CONFIG); in ms_hyperv_init_platform()
571 if (ms_hyperv.shared_gpa_boundary_active) in ms_hyperv_init_platform()
572 ms_hyperv.shared_gpa_boundary = in ms_hyperv_init_platform()
573 BIT_ULL(ms_hyperv.shared_gpa_boundary_bits); in ms_hyperv_init_platform()
576 ms_hyperv.isolation_config_a, ms_hyperv.isolation_config_b); in ms_hyperv_init_platform()
581 if (!ms_hyperv.paravisor_present) in ms_hyperv_init_platform()
587 ms_hyperv.hints &= ~HV_X64_APIC_ACCESS_RECOMMENDED; in ms_hyperv_init_platform()
589 if (!ms_hyperv.paravisor_present) { in ms_hyperv_init_platform()
597 ms_hyperv.features &= ~HV_MSR_REFERENCE_TSC_AVAILABLE; in ms_hyperv_init_platform()
605 if (!(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT)) in ms_hyperv_init_platform()
609 ms_hyperv.misc_features &= ~HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE; in ms_hyperv_init_platform()
612 ms_hyperv.hints &= ~HV_X64_REMOTE_TLB_FLUSH_RECOMMENDED; in ms_hyperv_init_platform()
620 ms_hyperv.nested_features = in ms_hyperv_init_platform()
623 ms_hyperv.nested_features); in ms_hyperv_init_platform()
627 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS && in ms_hyperv_init_platform()
628 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { in ms_hyperv_init_platform()
665 if (ms_hyperv.features & HV_ACCESS_TSC_INVARIANT) { in ms_hyperv_init_platform()
688 ms_hyperv.paravisor_present) in ms_hyperv_init_platform()
700 if (ms_hyperv.features & HV_ACCESS_REENLIGHTENMENT) { in ms_hyperv_init_platform()
705 if (ms_hyperv.misc_features & HV_STIMER_DIRECT_MODE_AVAILABLE) { in ms_hyperv_init_platform()
712 (!ms_hyperv.paravisor_present && hv_isolation_type_snp())) in ms_hyperv_init_platform()
741 !(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT)) in ms_hyperv_init_platform()
766 return ms_hyperv.msi_ext_dest_id; in ms_hyperv_msi_ext_dest_id()