Added additional debugging information in the case of malformed

resource list.

Signed-off-by: Eugene Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
Eugene Myers 2021-10-12 07:39:50 -04:00
parent e31d8506d8
commit 05f5e413eb
1 changed files with 2 additions and 1 deletions

View File

@ -1227,7 +1227,8 @@ LaunchBack (
}
if(!IsResourceListValid ((STM_RSC *)(UINTN)mHostContextCommon.HostContextPerCpu[Index].TxtProcessorSmmDescriptor->BiosHwResourceRequirementsPtr, FALSE)) {
DEBUG ((EFI_D_INFO, "%ld LaunchBack - ValidateBiosResourceList fail!\n", Index));
DEBUG ((EFI_D_INFO, "%ld LaunchBack - ValidateBiosResourceList fail! Pointer: 0x%x\n", Index,
(UINTN)mHostContextCommon.HostContextPerCpu[Index].TxtProcessorSmmDescriptor->BiosHwResourceRequirementsPtr));
WriteUnaligned32 ((UINT32 *)&Reg->Rax, ERROR_STM_MALFORMED_RESOURCE_LIST);
VmWriteN (VMCS_N_GUEST_RFLAGS_INDEX, VmReadN(VMCS_N_GUEST_RFLAGS_INDEX) | RFLAGS_CF);
} else {