Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 459f5ffa24ae8574657c4105af0ff7dc30ac428d https://github.com/tianocore/edk2/commit/459f5ffa24ae8574657c4105af0ff7dc30ac428d Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025)
Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: rework direct kernel boot filesystem Split KERNEL_BLOB struct into two: * One (KERNEL_BLOB_ITEMS) static array describing how to load (unnamed) blobs from fw_cfg. * And one (KERNEL_BLOB) dynamically allocated linked list carrying the data blobs for the pseudo filesystem. Also add some debug logging. Prefix most functions with 'QemuKernel' for consistency and easier log file grepping. Add some small helper functions. This refactoring prepares for loading blobs in other ways. No (intentional) change in filesystem protocol behavior. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 20df7c42bd446fe725bfc78cdb40577456c421d8 https://github.com/tianocore/edk2/commit/20df7c42bd446fe725bfc78cdb40577456c421d8 Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: add support for named blobs Load all named fw_cfg blobs with "etc/boot/" prefix into the pseudo filesystem. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: adf385ecab69631952bdc8b774ebd77e82b94a00 https://github.com/tianocore/edk2/commit/adf385ecab69631952bdc8b774ebd77e82b94a00 Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: allow longer file names QEMU_FW_CFG_FNAME_SIZE is 56. 'etc/boot/' prefix is minus 9. Add one for the terminating '\0'. Effective max size is 48. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 1111e9fe7078eed9e5c50e1808776ee40a629e16 https://github.com/tianocore/edk2/commit/1111e9fe7078eed9e5c50e1808776ee40a629e16 Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: drop bogus assert Triggers when trying to get root directory info. Reproducer: * Use qemu -kernel with something edk2 can not load. * When dropped into the efi shell try inspect the file system. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 46ae4e4b9574530e5081e98af0495d6f6d28379f https://github.com/tianocore/edk2/commit/46ae4e4b9574530e5081e98af0495d6f6d28379f Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: accept absolute paths EFI shell looks for "\startup.nsh". Try "-fw_cfg name=etc/boot/startup.nsh,string='echo hello'" ;) Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: c45051450efbdae4a38f07998b3e7b77abe7173a https://github.com/tianocore/edk2/commit/c45051450efbdae4a38f07998b3e7b77abe7173a Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c Log Message: ----------- OvmfPkg/QemuKernelLoaderFsDxe: don't quit when named blobs are present Allows to use the qemu kernel loader pseudo file system for other purposes than loading a linux kernel (or efi binary). Passing startup.nsh for EFI shell is one example. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 3da39f2cb681eb69f4eef54acd4b25d25cd7103d https://github.com/tianocore/edk2/commit/3da39f2cb681eb69f4eef54acd4b25d25cd7103d Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c Log Message: ----------- OvmfPkg/X86QemuLoadImageLib: support booting via shim Try load shim first. In case that succeeded update the command line to list 'kernel' first so shim will fetch the kernel from the kernel loader file system. This allows to use direct kernel boot with distro kernels and secure boot enabled. Usually distro kernels can only be verified by distro shim using the distro keys compiled into the shim binary. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 4b507b49664514d7f09e6b7a9ca2da25a5e440fd https://github.com/tianocore/edk2/commit/4b507b49664514d7f09e6b7a9ca2da25a5e440fd Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c Log Message: ----------- OvmfPkg/GenericQemuLoadImageLib: support booting via shim Try load shim first. In case that succeeded update the command line to list 'kernel' first so shim will fetch the kernel from the kernel loader file system. This allows to use direct kernel boot with distro kernels and secure boot enabled. Usually distro kernels can only be verified by distro shim using the distro keys compiled into the shim binary. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 1549bf11cc94b135b6ad8fa5ebc34bdf7c18ba9c https://github.com/tianocore/edk2/commit/1549bf11cc94b135b6ad8fa5ebc34bdf7c18ba9c Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c M OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf Log Message: ----------- OvmfPkg/X86QemuLoadImageLib: make legacy loader configurable. Add the 'opt/org.tianocore/EnableLegacyLoader' FwCfg option to enable/disable the insecure legacy linux kernel loader. For now this is enabled by default. Probably the default will be flipped to disabled at some point in the future. Also print a warning to the screen in case the linux kernel secure boot verification has failed. Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Commit: 35232f165cba2314cb4af2e0a5aa2fbb23695a0a https://github.com/tianocore/edk2/commit/35232f165cba2314cb4af2e0a5aa2fbb23695a0a Author: Gerd Hoffmann <kra...@redhat.com> Date: 2025-01-21 (Tue, 21 Jan 2025) Changed paths: M OvmfPkg/RUNTIME_CONFIG.md Log Message: ----------- OvmfPkg: document opt/org.tianocore/EnableLegacyLoader option Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Compare: https://github.com/tianocore/edk2/compare/139cbb266b48...35232f165cba To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits