aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/vmx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 69d45734091f..dba0f6ad4e57 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2842,8 +2842,9 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
2842 * Advertise EPTP switching unconditionally 2842 * Advertise EPTP switching unconditionally
2843 * since we emulate it 2843 * since we emulate it
2844 */ 2844 */
2845 vmx->nested.nested_vmx_vmfunc_controls = 2845 if (enable_ept)
2846 VMX_VMFUNC_EPTP_SWITCHING; 2846 vmx->nested.nested_vmx_vmfunc_controls =
2847 VMX_VMFUNC_EPTP_SWITCHING;
2847 } 2848 }
2848 2849
2849 /* 2850 /*