audk/OvmfPkg/Library
Gerd Hoffmann 1f19c3d6ee OvmfPkg/GenericQemuLoadImageLib: fix cmdline + initrd handling
Commit 459f5ffa24 ("OvmfPkg/QemuKernelLoaderFsDxe: rework direct
kernel boot filesystem") has a small change in behavior:  In case
there is no data the file is not created and attempts to open file
return EFI_NOT_FOUND.  Old behavior was to add a zero-length file
to the filesystem.

Fix GenericQemuLoadImageLib to handle EFI_NOT_FOUND correctly for
'initrd' and 'cmdline'.

Reported-by: Srikanth Aithal <sraithal@amd.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2025-01-24 18:26:37 +00:00
..
AcpiPlatformLib OvmfPkg: move QemuFwCfgAcpi into AcpiPlatformLib 2023-06-23 17:26:37 +00:00
AcpiTimerLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
AmdSvsmLib OvmfPkg/AmdSvsmLib: Add support for the SVSM create/delete vCPU calls 2024-04-17 20:04:41 +00:00
BaseCachingPciExpressLib OvmfPkg/BaseCachingPciExpressLib: Migrate BaseCachingPciExpressLib 2022-01-29 17:36:59 +00:00
BaseMemEncryptSevLib OvmfPkg: Enable AMD SEV-ES DebugVirtualization 2024-07-04 20:39:26 +00:00
BaseMemEncryptTdxLib OvmfPkg/BaseMemEncryptTdxLib: Handle retry result of MapGPA 2023-11-09 17:15:39 +00:00
BasePciCapLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
BasePciCapPciSegmentLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BhyveFwCtlLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BlobVerifierLibNull AmdSev: Halt on failed blob allocation 2024-06-25 15:27:42 +00:00
CcExitLib OvmfPkg: Add AMD SEV-ES DebugVirtualization feature support 2024-07-04 20:39:26 +00:00
CcProbeLib OvmfPkg: Update CcProbeLib to DxeCcProbeLib 2022-09-06 06:03:45 +00:00
DxePciLibI440FxQ35 OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EmuVariableFvbLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FdtNorFlashQemuLib OvmfPkg: Add no hardcode version of FdtNorFlashQemuLib 2024-06-04 22:51:09 +00:00
FdtSerialPortAddressLib ArmVirtPkg: Move the FdtSerialPortAddressLib to OvmfPkg 2024-02-06 23:51:47 +08:00
GenericQemuLoadImageLib OvmfPkg/GenericQemuLoadImageLib: fix cmdline + initrd handling 2025-01-24 18:26:37 +00:00
HardwareInfoLib OvmfPkg: remove last instances of EFI_D_ 2024-07-31 08:59:21 +00:00
HashLibTdx OmvfPkg/HashLibTdx: Add HashLibTdx 2024-04-17 03:04:13 +00:00
LoadLinuxLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBoxLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
MpInitLibDepLib OvmfPkg: Add MpInitLibDepLib 2022-05-11 08:40:53 +00:00
NestedInterruptTplLib OvmfPkg: Relax assertion that interrupts do not occur at TPL_HIGH_LEVEL 2023-05-09 22:09:50 +00:00
NvVarsFileLib OvmfPkg/NvVarsFileLib: disable in case PcdBootRestrictToFirmware is set 2023-05-10 13:39:41 +00:00
PciHostBridgeLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciHostBridgeLibScan OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciHostBridgeUtilityLib OvmfPkg/Library/HardwareInfoLib: Fix memory allocation for a root bridge 2024-11-27 22:06:12 +00:00
PeilessStartupLib OvmfPkg: Refactor PcdSetNxForStack usage in TDVF 2024-08-30 15:45:40 +00:00
PlatformBmPrintScLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
PlatformBootManagerLib OvmfPkg: Add virtio keyboard device hooks 2024-12-29 19:19:59 +01:00
PlatformBootManagerLibBhyve OvmfPkg/BhyvePkg: honor FwCfg when setting the bootorder 2024-06-18 19:18:07 +00:00
PlatformBootManagerLibLight ArmVirtPkg: Move PlatformBootManagerLib to OvmfPkg 2024-02-06 23:51:47 +08:00
PlatformDebugLibIoPort OvmfPkg/DebugLibIoPort: use Rom version for PEI 2022-12-14 17:45:41 +00:00
PlatformFvbLibNull OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformHasIoMmuLib OvmfPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:19 -07:00
PlatformInitLib OvmfPkg/PlatformInitLib: enable x2apic mode if needed 2024-11-25 12:22:38 +00:00
PlatformSecureLib OvmfPkg: strip trailing whitespace 2019-10-04 11:18:32 +01:00
PxeBcPcdProducerLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
QemuBootOrderLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
QemuFwCfgLib OvmfPkg/QemuFwCfgDxeLib: use PcdConfidentialComputingGuestAttr 2024-12-04 12:40:35 +00:00
QemuFwCfgS3Lib OvmfPkg/QemuFwCfgS3Lib: Disable S3 detection in TDVF 2024-09-09 02:57:02 +00:00
QemuFwCfgSimpleParserLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemLib OvmfPkg/OvmfXen: Introduce Xen's ResetSystemLib, to use xen hypercall 2024-08-30 16:55:41 +00:00
SerializeVariablesLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
SmbiosVersionLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
SmmCpuFeaturesLib OvmfPkg/SmmCpuFeaturesLib: Check Smbase Relocation is done or not 2024-05-08 01:53:58 +00:00
SmmCpuPlatformHookLibQemu OvmfPkg/SmmCpuPlatformHookLibQemu: Define IsCpuSyncAlwaysNeeded 2025-01-10 07:45:26 +00:00
SmmRelocationLib OvmfPkg/SmmRelocationLib: Add library instance for OVMF 2024-05-08 01:53:58 +00:00
Tcg2PhysicalPresenceLibNull OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2PhysicalPresenceLibQemu OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TdxMailboxLib OvmfPkg: Remove UefiCpuLib from module INFs. 2023-03-10 08:23:56 +00:00
TlsAuthConfigLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
UefiDriverEntryPointFwCfgOverrideLib OvmfPkg: add PcdEntryPointOverrideDefaultValue 2024-12-06 20:45:29 +00:00
UefiPciCapPciIoLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VirtioLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VirtioMmioDeviceLib OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAlignment. 2023-04-12 12:41:17 +00:00
X86QemuLoadImageLib OvmfPkg/X86QemuLoadImageLib: make legacy loader configurable. 2025-01-21 13:45:46 +01:00
XenConsoleSerialPortLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XenHypercallLib OvmfPkg/XenHypercallLib: Add SchedOp hypercall 2024-08-30 16:55:41 +00:00
XenIoMmioLib OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
XenPlatformLib OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XenRealTimeClockLib OvmfPkg: Align XenRealTimeClockLib function headers with return values 2024-02-09 22:16:32 +00:00