summaryrefslogtreecommitdiffstats
path: root/src/include/usr/secureboot
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2018-03-06 16:12:45 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-07-01 21:19:29 -0400
commit41cda93cb3e7ac6a75e8454731728153247279f0 (patch)
tree4c5cefc8ffef072f627ffba600809e7e42d6bf48 /src/include/usr/secureboot
parent4085033d657dd4e8fa9ff768b7fe8b3ca9c361b1 (diff)
downloadtalos-hostboot-41cda93cb3e7ac6a75e8454731728153247279f0.tar.gz
talos-hostboot-41cda93cb3e7ac6a75e8454731728153247279f0.zip
Add Support for TPM Message Queue Flushing
Add a synchronous message handler to TPM daemon. This message handler is used to make sure that all of the traces are flushed before the daemon is shut down. Change-Id: Ibb8ea2fd12d7ded9e43f284ff44c1791e61d8767 CQ:SW435287 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55223 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/secureboot')
-rw-r--r--src/include/usr/secureboot/trustedboot_reasoncodes.H1
-rw-r--r--src/include/usr/secureboot/trustedbootif.H8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/include/usr/secureboot/trustedboot_reasoncodes.H b/src/include/usr/secureboot/trustedboot_reasoncodes.H
index 0020ab20a..30865f5e0 100644
--- a/src/include/usr/secureboot/trustedboot_reasoncodes.H
+++ b/src/include/usr/secureboot/trustedboot_reasoncodes.H
@@ -58,6 +58,7 @@ namespace TRUSTEDBOOT
MOD_TPM_SYNCRESPONSE = 0x0C,
MOD_TPM_SEPARATOR = 0x0D,
MOD_TPM_CMD_GETCAPNVINDEX = 0x0E,
+ MOD_FLUSH_TPM_QUEUE = 0x0F,
MOD_TPMLOGMGR_INITIALIZE = 0x10,
MOD_TPMLOGMGR_ADDEVENT = 0x11,
MOD_TPMLOGMGR_INITIALIZEEXISTLOG = 0x12,
diff --git a/src/include/usr/secureboot/trustedbootif.H b/src/include/usr/secureboot/trustedbootif.H
index 63655964a..65223c90a 100644
--- a/src/include/usr/secureboot/trustedbootif.H
+++ b/src/include/usr/secureboot/trustedbootif.H
@@ -341,6 +341,14 @@ namespace TRUSTEDBOOT
*/
bool isTpmRequired();
+ /**
+ * @brief Send the synchronous flush queue message to the TPM daemon
+ *
+ * @return errlHndl_t nullptr if successful, otherwise a pointer to the
+ * error log.
+ */
+ errlHndl_t flushTpmQueue();
+
} // end TRUSTEDBOOT namespace
OpenPOWER on IntegriCloud