]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Add OS notifications for SetVariable at runtime
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 18 Apr 2024 12:54:51 +0000 (15:54 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 20 Apr 2024 06:22:24 +0000 (08:22 +0200)
commitbc3dd2493ef8c3c646aaeb3854a3f83558c50102
tree596d9f6fb7ef47ce60074c1da5e8c07f82a67b0b
parentc28d32f946f0d1c0780a02ab49dc2c1835370501
efi_loader: Add OS notifications for SetVariable at runtime

Previous patches enable SetVariable at runtime using a volatile storage
backend using EFI_RUNTIME_SERVICES_DATA allocared memory. Since there's
no recommendation from the spec on how to notify the OS, add a volatile
EFI variable that contains the filename relative to the ESP. OS'es
can use that file and update it at runtime

$~ efivar -p -n b2ac5fc9-92b7-4acd-aeac-11e818c3130c-RTStorageVolatile
GUID: b2ac5fc9-92b7-4acd-aeac-11e818c3130c
Name: "RTStorageVolatile"
Attributes:
Boot Service Access
Runtime Service Access
Value:
00000000  75 62 6f 6f 74 65 66 69  2e 76 61 72 00           |ubootefi.var.   |

Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_loader.h
lib/efi_loader/efi_runtime.c