Code cleanup

Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
Eugene D. Myers 2020-12-09 12:11:30 -05:00
parent 5eda06e2e8
commit 65bd757686
2 changed files with 10 additions and 12 deletions

View File

@ -42,7 +42,7 @@ SmiVmcallInitializeProtectionHandler (
/**
This function is the STARt_API handler for SMI.
This function is the START_API handler for SMI.
@param Index CPU index
@param AddressParameter Addresss parameter
@ -73,8 +73,8 @@ SmiVmcallStartHandler (
if(Index == 0)
{
#if 0
// Dump the SMI handler EPT tables
//EptDumpPageTable (&mGuestContextCommonSmm[0].EptPointer); // **DEBUG** Dump the SMI Handler EPT tables
// Dump the SMI handler EPT tables
EptDumpPageTable (&mGuestContextCommonSmm[0].EptPointer);
#endif
// sync the BSP CPU once the API is ready
CpuReadySync(Index);
@ -91,10 +91,9 @@ SmiVmcallStartHandler (
#endif
return STM_SUCCESS;
} else {
DEBUG ((EFI_D_ERROR,
"%ld SmiVmcallStartHandler - STM_API_START -- Error STM already started\n",
(UINTN) Index));
DEBUG ((EFI_D_ERROR,
"%ld SmiVmcallStartHandler - STM_API_START -- Error STM already started\n",
(UINTN) Index));
return ERROR_STM_ALREADY_STARTED;
}
}

View File

@ -54,11 +54,10 @@ VOID
VmcsLinkPtr = VmRead64 (VMCS_64_GUEST_VMCS_LINK_PTR_INDEX);
if (IsOverlap (VmcsLinkPtr, VmcsSize, mHostContextCommon.TsegBase, mHostContextCommon.TsegLength)) {
// Overlap TSEG
DEBUG ((EFI_D_ERROR,
"%ld RsmHandler - VmcsLinkPtr violation - %016lx\n",
Index,
VmcsLinkPtr));
DEBUG ((EFI_D_ERROR,
"%ld RsmHandler - VmcsLinkPtr violation - %016lx\n",
Index,
VmcsLinkPtr));
CpuDeadLoop() ;
}