Make sure the correct VMCS is loaded after VM/PE exit

Signed-off-by: Eugene Myers <edmyers@cyberpackventures.com>
This commit is contained in:
Eugene Myers 2023-02-01 15:30:08 -05:00
parent fa187042a9
commit 479f289e6f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ VOID
pCpuIndex = CpuIndex;
AsmVmPtrStore (&mGuestContextCommonSmm[VmType].GuestContextPerCpu[pCpuIndex].Vmcs);
Rflags = AsmVmPtrLoad (&mGuestContextCommonSmi.GuestContextPerCpu[pCpuIndex].Vmcs);
Rflags = AsmVmPtrLoad (&mGuestContextCommonSmi.GuestContextPerCpu[CpuIndex].Vmcs);
if ((Rflags & (RFLAGS_CF | RFLAGS_ZF)) != 0) {
DEBUG ((EFI_D_ERROR,
"%ld PeRsmHandler - ERROR: AsmVmPtrLoad %016lx : %08x\n",