zkey: Add function to cross check APQNs for valid master keys

Add a utility function to cross check the master keys of a set of
APQNs. It checks for valid master keys in the CURRENT and OLD
master key registers, as well as newly loaded master keys in the NEW
register. It issues information and warning messages for various
findings and also indicates improper master key setup to the caller.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2019-06-13 17:21:40 +02:00
committed by Jan Höppner
parent bfc3dd018c
commit b32c031474
2 changed files with 220 additions and 0 deletions
+3
View File
@@ -48,4 +48,7 @@ int handle_apqns(const char *apqns, apqn_handler_t handler, void *handler_data,
int print_mk_info(const char *apqns, bool verbose);
int cross_check_apqns(const char *apqns, u64 mkvp, bool print_mks,
bool verbose);
#endif