Skip to content

Commit

Permalink
Attempt vmresume before launch on launch back
Browse files Browse the repository at this point in the history
  • Loading branch information
makubacki committed Oct 28, 2024
1 parent 0eb0f5a commit 3121244
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SeaPkg/Core/Init/StmInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,11 @@ LaunchBack (

SerializationLock = 0;

Rflags = AsmVmLaunch (Register);
Rflags = AsmVmResume (Register);
if (VmRead32 (VMCS_32_RO_VM_INSTRUCTION_ERROR_INDEX) == VmxFailErrorVmResumeWithNonLaunchedVmcs) {
DEBUG ((DEBUG_ERROR, "Calling AsmVmLaunch()\n"));
Rflags = AsmVmLaunch (Register);
}

AcquireSpinLock (&mHostContextCommon.DebugLock);
DEBUG ((DEBUG_ERROR, "!!!LaunchBack FAIL!!!\n"));
Expand Down

0 comments on commit 3121244

Please sign in to comment.