summaryrefslogtreecommitdiff
path: root/OvmfPkg/AmdSev/AmdSevX64.fdf
diff options
context:
space:
mode:
authorRoth, Michael via groups.io <Michael.Roth=amd.com@groups.io>2023-08-16 15:11:45 -0500
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-09-05 22:35:21 +0000
commitf008890ae55929f7f17e7d2f8aff929255007d33 (patch)
treeffa321b0b1694f9f71665c98e8515f4dca77af89 /OvmfPkg/AmdSev/AmdSevX64.fdf
parenta23f4377c181e4bc496d53ebff8d94d0b8f2e842 (diff)
downloadedk2-f008890ae55929f7f17e7d2f8aff929255007d33.zip
edk2-f008890ae55929f7f17e7d2f8aff929255007d33.tar.gz
edk2-f008890ae55929f7f17e7d2f8aff929255007d33.tar.bz2
OvmfPkg/AmdSev: fix BdsPlatform.c assertion failure during boot
Booting an SEV guest with AmdSev OVMF package currently triggers the following assertion with QEMU: InstallQemuFwCfgTables: installed 7 tables PcRtc: Write 0x20 to CMOS location 0x32 [Variable]END_OF_DXE is signaled Initialize variable error flag (FF) ASSERT_EFI_ERROR (Status = Not Found) ASSERT [BdsDxe] /home/VT_BUILD/ovmf/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c(1711): !(((INTN)(RETURN_STATUS)(Status)) < 0) This seems to be due to commit 81dc0d8b4c, which switched to using PlatformBootManagerLib instead of PlatformBootManagerLibGrub. That pulls in a dependency on gEfiS3SaveStateProtocolGuid provider being available (which is asserted for in BdsPlatform.c:PlatformBootManagerBeforeConsole()/SaveS3BootScript()), but the libraries that provide it aren't currently included in the build. Add them similarly to what's done for OvmfPkg. Fixes: 81dc0d8b4c ("OvmfPkg/AmdSev: stop using PlatformBootManagerLibGrub") Signed-off-by: Michael Roth <michael.roth@amd.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/AmdSev/AmdSevX64.fdf')
-rw-r--r--OvmfPkg/AmdSev/AmdSevX64.fdf2
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/AmdSev/AmdSevX64.fdf b/OvmfPkg/AmdSev/AmdSevX64.fdf
index 463bd3e..b2ab0c7 100644
--- a/OvmfPkg/AmdSev/AmdSevX64.fdf
+++ b/OvmfPkg/AmdSev/AmdSevX64.fdf
@@ -270,6 +270,8 @@ INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
+INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
+INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
INF FatPkg/EnhancedFatDxe/Fat.inf