summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorKevin Loughlin <kevinloughlin@google.com>2026-10-16 22:54:04 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-21 12:48:29 +0300
commit85c3a5393714d2810dcd53a20a37541abb2b98b8 (patch)
treef40d6b3c14c9785dc93b56cbdaf851d09a2b957b /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parentb51b8dfbb06ff5a9c6b7fed4e443dd14f89403e9 (diff)
downloadedk2-85c3a5393714d2810dcd53a20a37541abb2b98b8.tar.xz
OvmfPkg/PlatformBootManagerLib: Skip 2nd console init without deferred ROMs
In PlatformBootManagerBeforeConsole(), PlatformInitializeConsole() is called a second time unconditionally after EfiBootManagerDispatchDeferredImages() to enable GOP consoles on passthrough GPUs whose Option ROMs were deferred until EndOfDxe. When no deferred images are loaded (EfiBootManagerDispatchDeferredImages() returns EFI_NOT_FOUND), this second call re-runs VisitAllPciInstances() to re-read the 64-byte PCI configuration header and re-write the PCI command register of every PCI device in the VM for no effect (which is particularly expensive under TDX/SEV-SNP where PCI configuration space accesses trap). Guard the second PlatformInitializeConsole() call on !EFI_ERROR (Status) from EfiBootManagerDispatchDeferredImages(). Suggested-by: Ravi Chandra Sadineni <ravisadineni@google.com> Signed-off-by: Kevin Loughlin <kevinloughlin@google.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions