[SLOF] [PATCH v3 16/17] Add TPM firmware API call reformat-sml-to-efi-alignment
Stefan Berger
stefanb at us.ibm.com
Tue Dec 1 09:01:59 AEDT 2015
From: Stefan Berger <stefanb at linux.vnet.ibm.com>
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>
---
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 042f0f1..d77fd7e 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 f7fb46f..96e612d 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.4.3
More information about the SLOF
mailing list