audk/ArmPlatformPkg/ArmVirtualizationPkg/Library
Laszlo Ersek 7602900aba ArmVirtualizationPkg: PlatformIntelBdsLib: lack of QEMU kernel is no error
When the user doesn't pass a kernel with QEMU's "-kernel" switch, the
firmware sees a zero-sized kernel blob via the QemuFwCfgItemKernelSize
key; there's no way to distinguish "no kernel" from "zero sized kernel".
In both cases TryRunningQemuKernel() proceeds as far as gBS->LoadImage(),
which then rejects the zero sized synthetic file with EFI_UNSUPPORTED.

This is known and works fully as expected; however we should rather catch
the much more frequent "no kernel" case earlier, in order to avoid the
EFI_D_ERROR message

  TryRunningQemuKernel: LoadImage(): Unsupported

which is arguably meaningless noise for the "no kernel" case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@arm.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16985 6f19259b-4bc3-4df7-8a09-765794883524
2015-03-02 16:19:36 +00:00
..
ArmVirtualizationDxeHobLib ArmPlatformPkg/ArmVirtualizationPkg: Add private HobLib implementation for DXE phase 2014-09-18 17:55:17 +00:00
ArmVirtualizationMemoryInitPeiLib ArmVirtualizationPkg: implement custom MemoryInitPeiLib 2015-02-28 20:31:08 +00:00
ArmVirtualizationPlatformLib ArmVirtualizationPkg: use a HOB to store device tree blob 2015-02-28 20:26:00 +00:00
ArmVirtualizationPsciResetSystemLib ArmPkg/ArmPsciResetSystemLib: Made the library only using SMC 2014-10-10 11:22:50 +00:00
ArmXenRelocatablePlatformLib ArmVirtualizationPkg: Xen/PV relocatable platformlib instance 2015-02-28 20:31:28 +00:00
BaseCachingPciExpressLib ArmVirtualizationPkg: clone BasePciExpressLib, cache PCIe config base 2015-02-23 16:04:07 +00:00
FdtPL011SerialPortLib ArmVirtualizationPkg: FdtPL011SerialPortLib: support UEFI_APPLICATION 2014-10-15 14:15:21 +00:00
NorFlashQemuLib ArmVirtualizationPkg: add driver for QEMU's NOR flash 2014-09-18 17:53:36 +00:00
PlatformIntelBdsLib ArmVirtualizationPkg: PlatformIntelBdsLib: lack of QEMU kernel is no error 2015-03-02 16:19:36 +00:00
PlatformPeiLib ArmVirtualizationPkg: allow patchable PCD for FV and DT base addresses 2015-02-28 20:31:18 +00:00
QemuFwCfgLib ArmVirtualizationPkg/QemuFwCfgLib: Fixed build error 2015-02-25 18:47:12 +00:00
XenRealTimeClockLib ArmVirtualizationPkg: implement dummy RealTimeClockLib for Xen 2015-02-28 20:33:55 +00:00