[SLOF] [PATCH v4 16/33] tpm: Add TPM firmware API call reformat-sml-to-efi-alignment
Stefan Berger
stefanb at linux.vnet.ibm.com
Thu Dec 12 07:27:11 AEDT 2019
This patch adds support for the TPM firmware API call
reformat-sml-to-efi-alignment. It also adds the required
entry 'ibm,sml-efi-reformat-supported' entry to the
/vdevice/vtpm node. This entry indicates that the API
call exists.
Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth at redhat.com>
---
board-qemu/slof/vio-vtpm-cdriver.fs | 9 +++++++++
board-qemu/slof/vtpm-sml.fs | 8 ++++++++
2 files changed, 17 insertions(+)
diff --git a/board-qemu/slof/vio-vtpm-cdriver.fs b/board-qemu/slof/vio-vtpm-cdriver.fs
index c13a063..4392615 100644
--- a/board-qemu/slof/vio-vtpm-cdriver.fs
+++ b/board-qemu/slof/vio-vtpm-cdriver.fs
@@ -153,6 +153,15 @@ false VALUE vtpm-debug?
THEN
;
+0 0 s" ibm,sml-efi-reformat-supported" property
+
+\ firmware API call
+: reformat-sml-to-efi-alignment ( -- success )
+ " reformat-sml-to-efi-alignment" vtpm-call-forward IF
+ false
+ THEN
+;
+
: open ( )
vtpm-debug? IF ." VTPM: vTPM open()" cr THEN
true
diff --git a/board-qemu/slof/vtpm-sml.fs b/board-qemu/slof/vtpm-sml.fs
index 43e4f1e..8d57c22 100644
--- a/board-qemu/slof/vtpm-sml.fs
+++ b/board-qemu/slof/vtpm-sml.fs
@@ -121,6 +121,14 @@ log-base LOG-SIZE tpm-set-log-parameters
THEN
;
+: reformat-sml-to-efi-alignment ( -- success? )
+ vtpm-debug? IF
+ ." Call to reformat-sml-to-efi-alignment" cr
+ THEN
+ \ a no-op since already byte aligned
+ true
+;
+
\
\ internal API calls
\
--
2.17.1
More information about the SLOF
mailing list