Searched refs:vmcs_config (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/ |
H A D | capabilities.h | 52 struct vmcs_config { struct 64 extern struct vmcs_config vmcs_config; 74 return (((u64)vmcs_config.basic_cap << 32) & VMX_BASIC_INOUT); in cpu_has_vmx_basic_inout() 79 return vmcs_config.pin_based_exec_ctrl & PIN_BASED_VIRTUAL_NMIS; in cpu_has_virtual_nmis() 84 return vmcs_config.pin_based_exec_ctrl & in cpu_has_vmx_preemption_timer() 91 vmcs_config.pin_based_exec_ctrl & PIN_BASED_POSTED_INTR; in cpu_has_vmx_posted_intr() 96 return (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_EFER) && in cpu_has_load_ia32_efer() 97 (vmcs_config.vmexit_ctrl & VM_EXIT_LOAD_IA32_EFER); in cpu_has_load_ia32_efer() 102 return (vmcs_config in cpu_has_load_perf_global_ctrl() [all...] |
H A D | evmcs.h | 15 struct vmcs_config; 180 __init void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf);
|
H A D | vmx.h | 427 u32 vmentry_ctrl = vmcs_config.vmentry_ctrl; in vmx_vmentry_ctrl() 438 u32 vmexit_ctrl = vmcs_config.vmexit_ctrl; in vmx_vmexit_ctrl()
|
H A D | vmx.c | 481 struct vmcs_config vmcs_config; variable 1876 return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data); in vmx_get_msr_feature() 2194 if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) { in vmx_set_msr() 2470 static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf, in setup_vmcs_config() 2676 pages = __alloc_pages_node(node, flags, vmcs_config.order); in alloc_vmcs_cpu() 2680 memset(vmcs, 0, vmcs_config.size); in alloc_vmcs_cpu() 2686 vmcs->hdr.revision_id = vmcs_config.revision_id; in alloc_vmcs_cpu() 2695 free_pages((unsigned long)vmcs, vmcs_config.order); in free_vmcs() 2779 vmcs->hdr.revision_id = vmcs_config in alloc_kvm_area() [all...] |
H A D | nested.c | 1248 u64 vmx_basic = vmcs_config.nested.basic; in vmx_restore_vmx_basic() 1306 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp); in vmx_restore_control_msr() 1332 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc() 1333 vmcs_config.nested.misc_high); in vmx_restore_vmx_misc() 1361 u64 vmx_ept_vpid_cap = vmx_control_msr(vmcs_config.nested.ept_caps, in vmx_restore_vmx_ept_vpid_cap() 1362 vmcs_config.nested.vpid_caps); in vmx_restore_vmx_ept_vpid_cap() 1387 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index); in vmx_restore_fixed0_msr() 1457 if (data & ~vmcs_config.nested.vmfunc_controls) in vmx_set_vmx_msr() 2568 } else if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) { in prepare_vmcs02()
|
H A D | evmcs.c | 300 __init void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf) in evmcs_sanitize_exec_ctrls()
|
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/ |
H A D | capabilities.h | 56 struct vmcs_config { struct 69 extern struct vmcs_config vmcs_config __ro_after_init; 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 in cpu_has_load_perf_global_ctrl() [all...] |
H A D | hyperv.h | 17 struct vmcs_config; 164 void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf);
|
H A D | nested.c | 1211 u64 vmx_basic = vmcs_config.nested.basic; in vmx_restore_vmx_basic() 1269 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp); in vmx_restore_control_msr() 1295 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc() 1296 vmcs_config.nested.misc_high); in vmx_restore_vmx_misc() 1324 u64 vmx_ept_vpid_cap = vmx_control_msr(vmcs_config.nested.ept_caps, in vmx_restore_vmx_ept_vpid_cap() 1325 vmcs_config.nested.vpid_caps); in vmx_restore_vmx_ept_vpid_cap() 1350 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index); in vmx_restore_fixed0_msr() 1420 if (data & ~vmcs_config.nested.vmfunc_controls) in vmx_set_vmx_msr() 2574 } else if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) { in prepare_vmcs02() 6764 static void nested_vmx_setup_pinbased_ctls(struct vmcs_config *vmcs_con [all...] |
H A D | vmx.c | 492 struct vmcs_config vmcs_config __ro_after_init; 1979 return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data); in vmx_get_msr_feature() 2325 if (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_IA32_PAT) in vmx_set_msr() 2577 static int setup_vmcs_config(struct vmcs_config *vmcs_conf, in setup_vmcs_config() 2776 struct vmcs_config vmcs_conf; in vmx_check_processor_compat() 2788 if (memcmp(&vmcs_config, &vmcs_conf, sizeof(struct vmcs_config))) { in vmx_check_processor_compat() 2877 memset(vmcs, 0, vmcs_config.size); in alloc_vmcs_cpu() 2883 vmcs->hdr.revision_id = vmcs_config in alloc_vmcs_cpu() [all...] |
H A D | nested.h | 20 void nested_vmx_setup_ctls_msrs(struct vmcs_config *vmcs_conf, u32 ept_caps);
|
H A D | hyperv.c | 634 void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf) in evmcs_sanitize_exec_ctrls()
|
Completed in 30 milliseconds