OSDN Git Service

efi: pstore: Omit efivars caching EFI varstore access layer
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 11:21:26 +0000 (13:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 18:40:19 +0000 (20:40 +0200)
commit859748255b43460685e93a1f8a40b8cdc3be02f2
tree487e7f9cf14b0a977ba2b037bf9d0a86ba29753c
parent472831d4c4b2d8eac783b256e5c829487d5310df
efi: pstore: Omit efivars caching EFI varstore access layer

Avoid the efivars layer and simply call the newly introduced EFI
varstore helpers instead. This simplifies the code substantially, and
also allows us to remove some hacks in the shared efivars layer that
were added for efi-pstore specifically.

In order to be able to delete the EFI variable associated with a record,
store the UTF-16 name of the variable in the pstore record's priv field.
That way, we don't have to make guesses regarding which variable the
record may have been loaded from.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Kconfig
drivers/firmware/efi/efi-pstore.c
drivers/firmware/efi/efivars.c
drivers/firmware/efi/vars.c
include/linux/efi.h