Lines Matching refs:ms_hyperv

41 struct ms_hyperv_info ms_hyperv;  variable
73 if (hv_is_synic_reg(reg) && ms_hyperv.paravisor_present) in hv_get_non_nested_register()
83 if (hv_is_synic_reg(reg) && ms_hyperv.paravisor_present) { in hv_set_non_nested_register()
126 if (ms_hyperv.hints & HV_DEPRECATING_AEOI_RECOMMENDED) in DEFINE_IDTENTRY_SYSVEC()
307 if (!ms_hyperv.paravisor_present && hv_isolation_type_snp()) { in hv_smp_prepare_cpus()
365 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
366 ms_hyperv.priv_high = cpuid_ebx(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
367 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES); in ms_hyperv_init_platform()
368 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO); in ms_hyperv_init_platform()
373 ms_hyperv.features, ms_hyperv.priv_high, ms_hyperv.hints, in ms_hyperv_init_platform()
374 ms_hyperv.misc_features); in ms_hyperv_init_platform()
376 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS); in ms_hyperv_init_platform()
377 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS); in ms_hyperv_init_platform()
380 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index); in ms_hyperv_init_platform()
396 if ((ms_hyperv.priv_high & HV_CPU_MANAGEMENT) && in ms_hyperv_init_platform()
397 !(ms_hyperv.priv_high & HV_ISOLATION)) { in ms_hyperv_init_platform()
402 if (ms_hyperv.hints & HV_X64_HYPERV_NESTED) { in ms_hyperv_init_platform()
422 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS && in ms_hyperv_init_platform()
423 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { in ms_hyperv_init_platform()
428 if (ms_hyperv.priv_high & HV_ISOLATION) { in ms_hyperv_init_platform()
429 ms_hyperv.isolation_config_a = cpuid_eax(HYPERV_CPUID_ISOLATION_CONFIG); in ms_hyperv_init_platform()
430 ms_hyperv.isolation_config_b = cpuid_ebx(HYPERV_CPUID_ISOLATION_CONFIG); in ms_hyperv_init_platform()
432 if (ms_hyperv.shared_gpa_boundary_active) in ms_hyperv_init_platform()
433 ms_hyperv.shared_gpa_boundary = in ms_hyperv_init_platform()
434 BIT_ULL(ms_hyperv.shared_gpa_boundary_bits); in ms_hyperv_init_platform()
436 hyperv_paravisor_present = !!ms_hyperv.paravisor_present; in ms_hyperv_init_platform()
439 ms_hyperv.isolation_config_a, ms_hyperv.isolation_config_b); in ms_hyperv_init_platform()
448 ms_hyperv.hints &= ~HV_X64_APIC_ACCESS_RECOMMENDED; in ms_hyperv_init_platform()
450 if (!ms_hyperv.paravisor_present) { in ms_hyperv_init_platform()
452 ms_hyperv.features &= ~HV_MSR_REFERENCE_TSC_AVAILABLE; in ms_hyperv_init_platform()
455 ms_hyperv.misc_features &= ~HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE; in ms_hyperv_init_platform()
458 ms_hyperv.hints &= ~HV_X64_REMOTE_TLB_FLUSH_RECOMMENDED; in ms_hyperv_init_platform()
466 ms_hyperv.nested_features = in ms_hyperv_init_platform()
469 ms_hyperv.nested_features); in ms_hyperv_init_platform()
473 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS && in ms_hyperv_init_platform()
474 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) { in ms_hyperv_init_platform()
499 if (ms_hyperv.features & HV_ACCESS_TSC_INVARIANT) { in ms_hyperv_init_platform()
532 ms_hyperv.paravisor_present) in ms_hyperv_init_platform()
543 if (ms_hyperv.features & HV_ACCESS_REENLIGHTENMENT) { in ms_hyperv_init_platform()
549 if (ms_hyperv.misc_features & HV_STIMER_DIRECT_MODE_AVAILABLE) { in ms_hyperv_init_platform()
557 (!ms_hyperv.paravisor_present && hv_isolation_type_snp())) in ms_hyperv_init_platform()
581 if (!(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT)) in ms_hyperv_init_platform()