Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/kvm/vmx/
H A Dcapabilities.h56 struct vmcs_config { struct
69 extern struct vmcs_config vmcs_config __ro_after_init; argument
79 return (((u64)vmcs_config.basic_cap << 32) & VMX_BASIC_INOUT); in cpu_has_vmx_basic_inout()
84 return vmcs_config.pin_based_exec_ctrl & PIN_BASED_VIRTUAL_NMIS && in cpu_has_virtual_nmis()
85 vmcs_config.cpu_based_exec_ctrl & CPU_BASED_NMI_WINDOW_EXITING; in cpu_has_virtual_nmis()
90 return vmcs_config.pin_based_exec_ctrl & in cpu_has_vmx_preemption_timer()
96 return vmcs_config.pin_based_exec_ctrl & PIN_BASED_POSTED_INTR; in cpu_has_vmx_posted_intr()
101 return vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_EFER; in cpu_has_load_ia32_efer()
106 return vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL; in cpu_has_load_perf_global_ctrl()
111 return vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_BNDCFGS; in cpu_has_vmx_mpx()
[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.h112 void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf);
H A Dvmx.c496 struct vmcs_config vmcs_config __ro_after_init;
1983 return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data); in vmx_get_msr_feature()
2329 if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) in vmx_set_msr()
2581 static int setup_vmcs_config(struct vmcs_config *vmcs_conf, in setup_vmcs_config()
2780 struct vmcs_config vmcs_conf; in vmx_check_processor_compat()
2792 if (memcmp(&vmcs_config, &vmcs_conf, sizeof(struct vmcs_config))) { in vmx_check_processor_compat()
2881 memset(vmcs, 0, vmcs_config.size); in alloc_vmcs_cpu()
2887 vmcs->hdr.revision_id = vmcs_config.revision_id; in alloc_vmcs_cpu()
2980 vmcs->hdr.revision_id = vmcs_config.revision_id; in alloc_kvm_area()
4362 if (vmcs_config.vmexit_ctrl & VM_EXIT_LOAD_IA32_PAT) { in vmx_set_constant_host_state()
[all …]
H A Dnested.c1215 u64 vmx_basic = vmcs_config.nested.basic; in vmx_restore_vmx_basic()
1273 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp); in vmx_restore_control_msr()
1299 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc()
1300 vmcs_config.nested.misc_high); in vmx_restore_vmx_misc()
1328 u64 vmx_ept_vpid_cap = vmx_control_msr(vmcs_config.nested.ept_caps, in vmx_restore_vmx_ept_vpid_cap()
1329 vmcs_config.nested.vpid_caps); in vmx_restore_vmx_ept_vpid_cap()
1354 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index); in vmx_restore_fixed0_msr()
1424 if (data & ~vmcs_config.nested.vmfunc_controls) in vmx_set_vmx_msr()
2589 } else if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) { in prepare_vmcs02()
6817 static void nested_vmx_setup_pinbased_ctls(struct vmcs_config *vmcs_conf, in nested_vmx_setup_pinbased_ctls()
[all …]
H A Dnested.h20 void nested_vmx_setup_ctls_msrs(struct vmcs_config *vmcs_conf, u32 ept_caps);