Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/kvm/vmx/
H A Dcapabilities.h56 struct vmcs_config { struct
67 extern struct vmcs_config vmcs_config __ro_after_init; argument
77 return vmcs_config.basic & VMX_BASIC_INOUT; in cpu_has_vmx_basic_inout()
88 return vmcs_config.pin_based_exec_ctrl & in cpu_has_vmx_preemption_timer()
129 return vmcs_config.cpu_based_exec_ctrl & in cpu_has_secondary_exec_ctrls()
135 return vmcs_config.cpu_based_exec_ctrl & in cpu_has_tertiary_exec_ctrls()
141 return vmcs_config.cpu_based_2nd_exec_ctrl & in cpu_has_vmx_virtualize_apic_accesses()
147 return vmcs_config.cpu_based_2nd_exec_ctrl & in cpu_has_vmx_ept()
159 return vmcs_config.cpu_based_2nd_exec_ctrl & in cpu_has_vmx_rdtscp()
165 return vmcs_config.cpu_based_2nd_exec_ctrl & in cpu_has_vmx_virtualize_x2apic_mode()
[all …]
H A Dvmx_onhyperv.c28 void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf) in evmcs_sanitize_exec_ctrls()
H A Dvmx_onhyperv.h121 void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf);
H A Dvmx.c502 struct vmcs_config vmcs_config __ro_after_init;
2008 return vmx_get_vmx_msr(&vmcs_config.nested, msr, data); in vmx_get_feature_msr()
2356 if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) in vmx_set_msr()
2820 struct vmcs_config vmcs_conf; in vmx_check_processor_compat()
2832 if (memcmp(&vmcs_config, &vmcs_conf, sizeof(struct vmcs_config))) { in vmx_check_processor_compat()
4397 if (vmcs_config.vmexit_ctrl & VM_EXIT_LOAD_IA32_PAT) { in vmx_set_constant_host_state()
4440 u32 vmentry_ctrl = vmcs_config.vmentry_ctrl; in vmx_vmentry_ctrl()
4457 u32 vmexit_ctrl = vmcs_config.vmexit_ctrl; in vmx_vmexit_ctrl()
4504 u32 exec_control = vmcs_config.cpu_based_exec_ctrl; in vmx_exec_control()
4817 if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) in init_vmcs()
[all …]
H A Dnested.c1265 u64 vmx_basic = vmcs_config.nested.basic; in vmx_restore_vmx_basic()
1331 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp); in vmx_restore_control_msr()
1363 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc()
1364 vmcs_config.nested.misc_high); in vmx_restore_vmx_misc()
1399 u64 vmx_ept_vpid_cap = vmx_control_msr(vmcs_config.nested.ept_caps, in vmx_restore_vmx_ept_vpid_cap()
1400 vmcs_config.nested.vpid_caps); in vmx_restore_vmx_ept_vpid_cap()
1425 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index); in vmx_restore_fixed0_msr()
1495 if (data & ~vmcs_config.nested.vmfunc_controls) in vmx_set_vmx_msr()
2678 } else if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) { in prepare_vmcs02()
7002 static void nested_vmx_setup_exit_ctls(struct vmcs_config *vmcs_conf, in nested_vmx_setup_exit_ctls()
[all …]
H A Dnested.h21 void nested_vmx_setup_ctls_msrs(struct vmcs_config *vmcs_conf, u32 ept_caps);