summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorKhalid Ali <khaliidcaliy@gmail.com>2026-01-13 19:45:52 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-01-14 14:51:50 +0300
commit3e5942ea5b022a6b148b207b2e81a72f1725d7b7 (patch)
tree18c8f9793d88a0663154273cea909a0fb3223e38 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parent8ba02634ecaa6ff5d0edcea266198f42eca90c53 (diff)
downloadedk2-3e5942ea5b022a6b148b207b2e81a72f1725d7b7.tar.xz
OvmfPkg: Fix dependency issue when StandaloneMm enabled
When enabled support of StandaloneMm on OVMF, ovmf boot manager depends on S3SaveStateDxe. However, the support of StandaloneMm currently doesn't include that driver. This causes assertion on ovmf with DEBUG and exception on RELEASE. PlatformBootManagerLib requires S3SaveStateDxe which produces EFI_S3_SAVE_STATE_PROTOCOL to successfully able to store boot secript. Given the commit b017b1b that introduced didn't indicate any potential issue. Also enabling that library, there is no other issues observed. S3SaveStateDxe should always be built with OVMF whether StandaloneMm is enabled or not. Observations: OVMF DEBUG build has been observed to trigger this assertions: ASSERT_EFI_ERROR (Status = Not Found) ASSERT BdsPlatform.c(1583): !(((RETURN_STATUS)(Status)) >= 0x8000000000000000ULL) On OVMF RELEASE build due missing null check BootScript is dereferenced while it is NULL. Which caused following exception: !!!! X64 Exception Type - 06(#UD - Invalid Opcode) CPU Apic ID - 00000000 !!!! RIP - 00000000000E0000, CS - 0000000000000038, RFLAGS - 0000000000010246 RAX - 0000000000000000, RCX - 0000000000000000, RDX - 000000000000000A RBX - 0000000000000000, RSP - 0000000007E8E968, RBP - 0000000007E8EE50 RSI - 0000000006B9ADE3, RDI - 0000000006BA2670 R8 - 0000000000000004, R9 - 0000000006BA1DD5, R10 - 00000000076DF100 R11 - 00000000076DE295, R12 - 0000000007E8EAA8, R13 - 0000000007E8EED8 R14 - 0000000000000600, R15 - 000000008000F880 DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030 GS - 0000000000000030, SS - 0000000000000030 CR0 - 0000000080010033, CR2 - 0000000000000000, CR3 - 0000000007801000 CR4 - 0000000000000668, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000075DA000 0000000000000057, LDTR - 0000000000000000 IDTR - 0000000007270018 0000000000000FFF, TR - 0000000000000048 FXSAVE_STATE - 0000000007E8E5C0 !!!! Can't find image information. !!!! Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions