Home
last modified time | relevance | path

Searched refs:vmx_capability (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/arch/x86/kernel/cpu/
Dfeat_ctl.c42 c->vmx_capability[PRIMARY_CTLS] = supported; in init_vmx_capabilities()
45 c->vmx_capability[SECONDARY_CTLS] = supported; in init_vmx_capabilities()
49 c->vmx_capability[TERTIARY_CTLS_LOW] = low; in init_vmx_capabilities()
50 c->vmx_capability[TERTIARY_CTLS_HIGH] = high; in init_vmx_capabilities()
64 c->vmx_capability[MISC_FEATURES] = (supported & 0xffff) | in init_vmx_capabilities()
70 c->vmx_capability[MISC_FEATURES] |= VMX_F(EPT_EXECUTE_ONLY); in init_vmx_capabilities()
72 c->vmx_capability[MISC_FEATURES] |= VMX_F(EPT_AD); in init_vmx_capabilities()
74 c->vmx_capability[MISC_FEATURES] |= VMX_F(EPT_1GB); in init_vmx_capabilities()
77 if ((c->vmx_capability[PRIMARY_CTLS] & VMX_F(VIRTUAL_TPR)) && in init_vmx_capabilities()
78 (c->vmx_capability[SECONDARY_CTLS] & VMX_F(VIRT_APIC_ACCESSES))) in init_vmx_capabilities()
[all …]
Dproc.c107 if (cpu_has(c, X86_FEATURE_VMX) && c->vmx_capability[0]) { in show_cpuinfo()
110 if (test_bit(i, (unsigned long *)c->vmx_capability) && in show_cpuinfo()
Dcommon.c1846 memset(&c->vmx_capability, 0, sizeof(c->vmx_capability)); in identify_cpu()
/linux-6.6.21/arch/x86/kvm/vmx/
Dcapabilities.h71 struct vmx_capability { struct
75 extern struct vmx_capability vmx_capability __ro_after_init; argument
296 return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT; in cpu_has_vmx_ept_execute_only()
301 return vmx_capability.ept & VMX_EPT_PAGE_WALK_4_BIT; in cpu_has_vmx_ept_4levels()
306 return vmx_capability.ept & VMX_EPT_PAGE_WALK_5_BIT; in cpu_has_vmx_ept_5levels()
311 return vmx_capability.ept & VMX_EPTP_WB_BIT; in cpu_has_vmx_ept_mt_wb()
316 return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT; in cpu_has_vmx_ept_2m_page()
321 return vmx_capability.ept & VMX_EPT_1GB_PAGE_BIT; in cpu_has_vmx_ept_1g_page()
335 return vmx_capability.ept & VMX_EPT_AD_BIT; in cpu_has_vmx_ept_ad_bits()
340 return vmx_capability.ept & VMX_EPT_EXTENT_CONTEXT_BIT; in cpu_has_vmx_invept_context()
[all …]
Dvmx.c493 struct vmx_capability vmx_capability __ro_after_init;
2578 struct vmx_capability *vmx_cap) in setup_vmcs_config()
2777 struct vmx_capability vmx_cap; in vmx_check_processor_compat()
8444 if (setup_vmcs_config(&vmcs_config, &vmx_capability) < 0) in hardware_setup()
8552 ept_caps_to_lpage_level(vmx_capability.ept)); in hardware_setup()
8607 nested_vmx_setup_ctls_msrs(&vmcs_config, vmx_capability.ept); in hardware_setup()
/linux-6.6.21/arch/x86/include/asm/
Dprocessor.h93 __u32 vmx_capability[NVMXINTS]; member