edk2/OvmfPkg/Library/MemDebugLogLib
Gerd Hoffmann 4ff51f3780 OvmfPkg/MemDebugLogLib: use AcquireSpinLockOrFail
Drop log lines if we can't get the spin lock.  Not nice, but better than
risking a deadlock.

Some background:  Most of edk2 runs single-threaded on the BSP, so if
something holds the lock it is rather unlikely that waiting is going to
help.  Specifically I think a deadlock can happen if (a) a timer
interrupt arrives while the lock is held, and (b) some higher-TPL timer
handler tries to print something to the debug log.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2025-12-04 12:36:28 +00:00
..
MemDebugLogCommon.c OvmfPkg/MemDebugLogLib: use AcquireSpinLockOrFail 2025-12-04 12:36:28 +00:00
MemDebugLogDxe.c OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogDxeLib.inf OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogLibNull.inf OvmfPkg: MemDebugLogLibNull: Support Standalone MM core and drivers 2025-06-19 06:17:18 +00:00
MemDebugLogNull.c OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogPei.c OvmfPkg/MemDebugLogLib: unoptimize PEIM and PEI_CORE 2025-08-28 09:56:09 +00:00
MemDebugLogPeiCore.c OvmfPkg/MemDebugLogLib: unoptimize PEIM and PEI_CORE 2025-08-28 09:56:09 +00:00
MemDebugLogPeiCoreLib.inf OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogPeiLib.inf OvmfPkg/MemDebugLogLib: move QemuFwCfgSimpleParserLib to LibraryClasses 2025-08-28 09:56:09 +00:00
MemDebugLogRt.c OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogRtLib.inf OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogSec.c OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00
MemDebugLogSecLib.inf OvmfPkg: Add OVMF Memory Debug Logging MemDebugLogLib library 2025-06-13 22:19:39 +00:00