aboutsummaryrefslogtreecommitdiff
path: root/board-qemu/slof/vio-vtpm-cdriver.fs
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2021-07-08 17:36:55 -0400
committerAlexey Kardashevskiy <aik@ozlabs.ru>2021-07-11 23:32:28 +1000
commit6c0fcd9f3085814b808d18aa81ae6669063ea33b (patch)
tree1b699115f53b45d3ea10d1823307f06cd30d88b3 /board-qemu/slof/vio-vtpm-cdriver.fs
parent52dcdb5421a976e41951f05ec2fd247fee154e6c (diff)
downloadSLOF-6c0fcd9f3085814b808d18aa81ae6669063ea33b.zip
SLOF-6c0fcd9f3085814b808d18aa81ae6669063ea33b.tar.gz
SLOF-6c0fcd9f3085814b808d18aa81ae6669063ea33b.tar.bz2
tpm: Add firmware API call 2HASH-EXT-LOG
Add a new firmware API call with the name 2HASH-EXT-LOG that will be used by trusted grub for measuring, logging, and extending TPM PCRs. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu/slof/vio-vtpm-cdriver.fs')
-rw-r--r--board-qemu/slof/vio-vtpm-cdriver.fs11
1 files changed, 11 insertions, 0 deletions
diff --git a/board-qemu/slof/vio-vtpm-cdriver.fs b/board-qemu/slof/vio-vtpm-cdriver.fs
index 51b3b9f..df966a2 100644
--- a/board-qemu/slof/vio-vtpm-cdriver.fs
+++ b/board-qemu/slof/vio-vtpm-cdriver.fs
@@ -46,6 +46,17 @@ LOG-SIZE BUFFER: log-base
tpm-driver-get-failure-reason ( reason )
;
+\ firmware API call
+: 2hash-ext-log ( pcr eventtype info info-len data data-len -- success?)
+ vtpm-debug? IF
+ ." Call to 2hash-ext-log" cr
+ THEN
+ tpm-2hash-ext-log ( success? )
+ dup 0= IF
+ ." VTPM: tpm-2hash-ext-log failed: " dup . cr
+ THEN
+;
+
0 0 s" ibm,sml-efi-reformat-supported" property
\ firmware API call