]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformDebugLibIoPort: write messages with IoWriteFifo8()
authorLaszlo Ersek <lersek@redhat.com>
Mon, 4 Sep 2017 14:30:40 +0000 (16:30 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 11 Sep 2017 20:28:25 +0000 (22:28 +0200)
commit80886a695377dfe421ae93887b85e37982c1f1c3
tree930466e137d3ed0f8a996151ada6c9966c866885
parent98a4d04e8fda7c23c0cce1ac65597e8144bcb5b8
OvmfPkg/PlatformDebugLibIoPort: write messages with IoWriteFifo8()

Since commit 19c6d9feaaf8 ("MdePkg: Expand BaseIoLibIntrinsic (IoLib
class) library", 2017-01-14), IoWriteFifo8() has been widely available to
modules. Use it to print debug messages and assertion failures to the QEMU
debug port, rather than open-coded loops.

In the general case this speeds up logging, because debug messages will
now trap to QEMU once per message (as opposed to once per character), due
to "REP OUTSB" in "MdePkg/Library/BaseIoLibIntrinsic/*/IoFifoSev.nasm".

In SEV guests, there is no speedup (SEV doesn't support the REP prefix).
SEV is detected internally to BaseIoLibIntrinsic.

Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Brijesh Singh <brijesh.singh@amd.com>
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c