Home
last modified time | relevance | path

Searched refs:ms_hyperv (Results 1 – 10 of 10) sorted by relevance

/arch/x86/kernel/cpu/
A Dmshyperv.c39 struct ms_hyperv_info ms_hyperv; variable
455 ms_hyperv.features, ms_hyperv.priv_high, in ms_hyperv_init_platform()
456 ms_hyperv.ext_features, ms_hyperv.hints, in ms_hyperv_init_platform()
457 ms_hyperv.misc_features); in ms_hyperv_init_platform()
463 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index); in ms_hyperv_init_platform()
484 ms_hyperv.shared_gpa_boundary = in ms_hyperv_init_platform()
490 ms_hyperv.isolation_config_a, ms_hyperv.isolation_config_b); in ms_hyperv_init_platform()
501 if (!ms_hyperv.paravisor_present) { in ms_hyperv_init_platform()
531 ms_hyperv.nested_features = in ms_hyperv_init_platform()
534 ms_hyperv.nested_features); in ms_hyperv_init_platform()
[all …]
/arch/arm64/hyperv/
A Dmshyperv.c94 ms_hyperv.features = result.as32.a; in hyperv_init()
95 ms_hyperv.priv_high = result.as32.b; in hyperv_init()
96 ms_hyperv.misc_features = result.as32.c; in hyperv_init()
99 ms_hyperv.hints = result.as32.a; in hyperv_init()
102 ms_hyperv.features, ms_hyperv.priv_high, ms_hyperv.hints, in hyperv_init()
103 ms_hyperv.misc_features); in hyperv_init()
118 if (ms_hyperv.priv_high & HV_ACCESS_PARTITION_ID) in hyperv_init()
120 ms_hyperv.vtl = get_vtl(); in hyperv_init()
121 if (ms_hyperv.vtl > 0) /* non default VTL */ in hyperv_init()
122 pr_info("Linux runs in Hyper-V Virtual Trust Level %d\n", ms_hyperv.vtl); in hyperv_init()
/arch/x86/hyperv/
A Dhv_init.c56 if (!ms_hyperv.paravisor_present || !hv_isolation_type_snp()) in hyperv_init_ghcb()
70 ghcb_gpa &= ~ms_hyperv.shared_gpa_boundary; in hyperv_init_ghcb()
173 return ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS && in hv_reenlightenment_available()
175 ms_hyperv.features & HV_ACCESS_REENLIGHTENMENT; in hv_reenlightenment_available()
426 ms_hyperv.hints &= ~HV_X64_ENLIGHTENED_VMCS_RECOMMENDED; in hyperv_init()
432 if (ms_hyperv.paravisor_present && hv_isolation_type_snp()) { in hyperv_init()
476 if (hv_isolation_type_tdx() && !ms_hyperv.paravisor_present) in hyperv_init()
555 if (ms_hyperv.priv_high & HV_ACCESS_PARTITION_ID) in hyperv_init()
571 ms_hyperv.vtl = get_vtl(); in hyperv_init()
573 if (ms_hyperv.vtl > 0) /* non default VTL */ in hyperv_init()
[all …]
A Dhv_apic.c115 if (!(ms_hyperv.hints & HV_X64_EX_PROCESSOR_MASKS_RECOMMENDED)) in __send_ipi_mask_ex()
185 if (ms_hyperv.paravisor_present || !hv_isolation_type_tdx()) in __send_ipi_mask()
245 if (ms_hyperv.paravisor_present || !hv_isolation_type_tdx()) in __send_ipi_one()
296 if (ms_hyperv.hints & HV_X64_CLUSTER_IPI_RECOMMENDED) { in hv_apic_init()
311 if (ms_hyperv.hints & HV_X64_APIC_ACCESS_RECOMMENDED) { in hv_apic_init()
A Dhv_spinlock.c74 !(ms_hyperv.hints & HV_X64_CLUSTER_IPI_RECOMMENDED) || in hv_init_spinlocks()
75 !(ms_hyperv.features & HV_MSR_GUEST_IDLE_AVAILABLE)) { in hv_init_spinlocks()
A Divm.c310 if (vp_index < 0 || vp_index > ms_hyperv.max_vp_index) in hv_snp_boot_ap()
361 start_vp_input->target_vtl.target_vtl = ms_hyperv.vtl; in hv_snp_boot_ap()
445 if (!ms_hyperv.paravisor_present) in hv_ivm_msr_write()
456 if (!ms_hyperv.paravisor_present) in hv_ivm_msr_read()
664 cc_set_mask(ms_hyperv.shared_gpa_boundary); in hv_vtom_init()
665 physical_mask &= ms_hyperv.shared_gpa_boundary - 1; in hv_vtom_init()
681 if (!(ms_hyperv.priv_high & HV_ISOLATION)) in hv_get_isolation_type()
683 return FIELD_GET(HV_ISOLATION_TYPE, ms_hyperv.isolation_config_b); in hv_get_isolation_type()
A Dmmu.c179 if (!(ms_hyperv.hints & HV_X64_EX_PROCESSOR_MASKS_RECOMMENDED)) in hyperv_flush_tlb_others_ex()
241 if (!(ms_hyperv.hints & HV_X64_REMOTE_TLB_FLUSH_RECOMMENDED)) in hyperv_setup_mmu_ops()
A Dhv_vtl.c64 pr_info("Linux runs in Hyper-V Virtual Trust Level %d\n", ms_hyperv.vtl); in hv_vtl_init_platform()
226 if (vp_index > ms_hyperv.max_vp_index) { in hv_vtl_wakeup_secondary_cpu()
/arch/x86/kvm/svm/
A Dsvm_onhyperv.h24 return ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB && in svm_hv_is_enlightened_tlb_enabled()
36 ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB) in svm_hv_init_vmcb()
39 if (ms_hyperv.nested_features & HV_X64_NESTED_MSR_BITMAP) in svm_hv_init_vmcb()
46 ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB) { in svm_hv_hardware_setup()
52 if (ms_hyperv.nested_features & HV_X64_NESTED_DIRECT_FLUSH) { in svm_hv_hardware_setup()
/arch/x86/kvm/vmx/
A Dvmx.c544 if (ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED && in hv_init_evmcs()
545 (ms_hyperv.nested_features & HV_X64_ENLIGHTENED_VMCS_VERSION) >= in hv_init_evmcs()
561 if (ms_hyperv.nested_features & HV_X64_NESTED_DIRECT_FLUSH) in hv_init_evmcs()
7471 (ms_hyperv.nested_features & HV_X64_NESTED_MSR_BITMAP)) { in vmx_vcpu_create()
8396 if (ms_hyperv.nested_features & HV_X64_NESTED_GUEST_MAPPING_FLUSH in vmx_hardware_setup()

Completed in 27 milliseconds