[Skiboot] [PATCH v5 03/20] include/secvar.h: add .lockdown() hook to secvar storage driver
Eric Richter
erichte at linux.ibm.com
Sat Jun 13 06:24:57 AEST 2020
Previously, it was implied that the storage driver would lock itself after
performing a write action. As this behavior is not particularly clear when
reviewing the main secvar flow, this action instead has been made explicit.
Signed-off-by: Eric Richter <erichte at linux.ibm.com>
---
V5:
- split this into its own patch
- squashed in a whitespace fix
include/secvar.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/secvar.h b/include/secvar.h
index ec812b85..76525534 100644
--- a/include/secvar.h
+++ b/include/secvar.h
@@ -9,9 +9,10 @@
struct secvar;
struct secvar_storage_driver {
- int (*load_bank)(struct list_head *bank, int section);
- int (*write_bank)(struct list_head *bank, int section);
- int (*store_init)(void);
+ int (*load_bank)(struct list_head *bank, int section);
+ int (*write_bank)(struct list_head *bank, int section);
+ int (*store_init)(void);
+ void (*lockdown)(void);
uint64_t max_var_size;
};
--
2.27.0
More information about the Skiboot
mailing list