Index: /trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h	(revision 79810)
+++ /trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h	(revision 79811)
@@ -2625,4 +2625,7 @@
         Log3(("vmexit: Loading host-state failed. uExitReason=%u rc=%Rrc\n", uExitReason, VBOXSTRICTRC_VAL(rcStrict)));
 
+    /* We're no longer in nested-guest execution mode. */
+    pVCpu->cpum.GstCtx.hwvirt.vmx.fInVmxNonRootMode = false;
+
     /* Notify HM that the current VMCS fields have been modified. */
     HMNotifyVmxNstGstCurrentVmcsChanged(pVCpu);
@@ -2630,7 +2633,4 @@
     /* Notify HM that we've completed the VM-exit. */
     HMNotifyVmxNstGstVmexit(pVCpu);
-
-    /* We're no longer in nested-guest execution mode. */
-    pVCpu->cpum.GstCtx.hwvirt.vmx.fInVmxNonRootMode = false;
 
 #  if defined(VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM) && defined(IN_RING3)
