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>
1 file changed