Core/Runtime/SmiEventHandler.c - add additional diagnostics

Signed-off-by: Eugene Myers <edmyers@cyberpackventures.com>
This commit is contained in:
Eugene Myers 2023-03-21 18:00:54 -04:00
parent 473d544c10
commit 42be595439
1 changed files with 10 additions and 1 deletions

View File

@ -69,7 +69,16 @@ SmiEventHandler (
if(PeSmiHandler(Index) == 1)
{
AsmVmPtrLoad (&mGuestContextCommonSmi.GuestContextPerCpu[Index].Vmcs);
#if 1
Rflags = AsmVmPtrLoad (&mGuestContextCommonSmi.GuestContextPerCpu[Index].Vmcs);
if ((Rflags & (RFLAGS_CF | RFLAGS_ZF)) != 0) {
DEBUG ((EFI_D_ERROR,
"%ld ERROR: AsmVmPtrLoad - %016lx : %08x\n",
(UINTN)Index,
mGuestContextCommonSmm[SMI_HANDLER].GuestContextPerCpu[Index].Vmcs,
Rflags));
}
#endif
return;
}
#if 0