KVM: x86: Pull the PGD's level from the MMU instead of recalculating it
[linux-2.6-microblaze.git] / arch / x86 / kvm / vmx / nested.c
index 4d561ed..e405e75 100644 (file)
@@ -2162,7 +2162,8 @@ static void prepare_vmcs02_constant_state(struct vcpu_vmx *vmx)
         * consistency checks.
         */
        if (enable_ept && nested_early_check)
-               vmcs_write64(EPT_POINTER, construct_eptp(&vmx->vcpu, 0));
+               vmcs_write64(EPT_POINTER,
+                            construct_eptp(&vmx->vcpu, 0, PT64_ROOT_4LEVEL));
 
        /* All VMFUNCs are currently emulated through L0 vmexits.  */
        if (cpu_has_vmx_vmfunc())