Home
last modified time | relevance | path

Searched refs:X86_FEATURE_VMX (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.6.21/arch/x86/kernel/cpu/
Dfeat_ctl.c120 clear_cpu_cap(c, X86_FEATURE_VMX); in init_ia32_feat_ctl()
125 enable_vmx = cpu_has(c, X86_FEATURE_VMX) && in init_ia32_feat_ctl()
171 if (!cpu_has(c, X86_FEATURE_VMX)) in init_ia32_feat_ctl()
179 clear_cpu_cap(c, X86_FEATURE_VMX); in init_ia32_feat_ctl()
198 if (!cpu_has(c, X86_FEATURE_VMX) && enable_sgx_kvm) { in init_ia32_feat_ctl()
Dproc.c107 if (cpu_has(c, X86_FEATURE_VMX) && c->vmx_capability[0]) { in show_cpuinfo()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dvmx_msrs_test.c102 __ia32_feature_control_msr_test(vcpu, FEAT_CTL_VMX_ENABLED_INSIDE_SMX, X86_FEATURE_VMX); in ia32_feature_control_msr_test()
103 __ia32_feature_control_msr_test(vcpu, FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX, X86_FEATURE_VMX); in ia32_feature_control_msr_test()
122 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dhyperv_cpuid.c148 if (!kvm_cpu_has(X86_FEATURE_VMX) || in main()
168 test_hv_cpuid(hv_cpuid_entries, kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dvmx_set_nested_state_test.c124 vcpu_set_cpuid_feature(vcpu, X86_FEATURE_VMX); in test_vmx_nested_state()
260 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
267 vcpu_clear_cpuid_feature(vcpu, X86_FEATURE_VMX); in main()
Dvmx_close_while_nested_test.c54 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dvmx_invalid_nested_guest_state.c61 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dvmx_apic_access_test.c83 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dtriple_fault_event_test.c66 bool has_vmx = kvm_cpu_has(X86_FEATURE_VMX); in main()
Dvmx_dirty_log_test.c79 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dvmx_tsc_adjust_test.c125 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dsmm_test.c158 else if (kvm_cpu_has(X86_FEATURE_VMX)) in main()
Dset_sregs_test.c56 if (kvm_cpu_has(X86_FEATURE_VMX)) in calc_supported_cr4_feature_bits()
Dvmx_nested_tsc_scaling_test.c149 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dvmx_preemption_timer_test.c169 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dnested_exceptions_test.c225 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SVM) || kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dstate_test.c251 else if (kvm_cpu_has(X86_FEATURE_VMX)) in main()
Dhyperv_evmcs.c245 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/
Dmemstress.c87 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in memstress_setup_nested()
/linux-6.6.21/tools/arch/x86/include/asm/
Dcpufeatures.h121 #define X86_FEATURE_VMX ( 4*32+ 5) /* Hardware virtualization */ macro
/linux-6.6.21/arch/x86/kernel/cpu/sgx/
Dvirt.c311 if (!cpu_feature_enabled(X86_FEATURE_VMX)) in sgx_vepc_init()
/linux-6.6.21/arch/x86/include/asm/
Dcpufeatures.h121 #define X86_FEATURE_VMX ( 4*32+ 5) /* Hardware virtualization */ macro
/linux-6.6.21/arch/x86/kvm/
Dx86.h528 if (!__cpu_has(__c, X86_FEATURE_VMX)) \
/linux-6.6.21/arch/x86/kvm/vmx/
Dhyperv.c453 if (kvm_cpu_cap_get(X86_FEATURE_VMX) && in nested_get_evmcs_version()
Dvmx.c75 X86_MATCH_FEATURE(X86_FEATURE_VMX, NULL),
2062 if (!guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_get_msr()
2370 if (!guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_set_msr()
2754 !this_cpu_has(X86_FEATURE_VMX)) { in __kvm_is_vmx_supported()
7777 kvm_governed_feature_check_and_set(vcpu, X86_FEATURE_VMX); in vmx_vcpu_after_set_cpuid()
7785 if (guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_vcpu_after_set_cpuid()
7794 if (guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_vcpu_after_set_cpuid()
7874 kvm_cpu_cap_set(X86_FEATURE_VMX); in vmx_set_cpu_caps()

12