[SLOF] [PATCH 12/16] Add TPM firmware API calls hash-all, log-event, hash-log-extend-event

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Thu Nov 12 17:21:18 AEDT 2015


Stefan Berger <stefanb at linux.vnet.ibm.com> writes:

> Add the TPM firmware API calls hash-all, log-event, and hash-log-extend-event.
> These firmware calls are implemented in /vdevice/vtpm and /ibm,vtpm but the
> former merely forwards the calls to the latter. The implementation follows
> the Virtual TPM firmware documentation.
>
> These particular 3 API calls enable trusted grub extensions.
>
> Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
> ---
>  board-qemu/slof/vio-vtpm-cdriver.fs | 37 +++++++++++++++++++++++++++++++++
>  board-qemu/slof/vtpm-sml.fs         | 22 ++++++++++++++++++++
>  lib/libtpm/tcgbios.c                | 41 +++++++++++++++++++++++++++++++++++++
>  lib/libtpm/tcgbios.h                |  5 +++++
>  lib/libtpm/tpm.code                 | 32 +++++++++++++++++++++++++++++
>  lib/libtpm/tpm.in                   |  3 +++
>  slof/fs/tpm/tpm-static.fs           | 40 ++++++++++++++++++++++++++++++++++++
>  7 files changed, 180 insertions(+)
>
> diff --git a/board-qemu/slof/vio-vtpm-cdriver.fs b/board-qemu/slof/vio-vtpm-cdriver.fs
> index 0b4ba41..44e5aec 100644
> --- a/board-qemu/slof/vio-vtpm-cdriver.fs
> +++ b/board-qemu/slof/vio-vtpm-cdriver.fs
> @@ -58,6 +58,43 @@ false VALUE vtpm-debug?
>      r> to my-self
>  ;
>
> +\ forward a call to /ibm,vtpm, which implements the function with the
> +\ given name
> +: call-forward ( arg ... arg name namelen -- failure? ret ... ret )

Call it vtpm-call-forward, call-forward is pretty generic name.



More information about the SLOF mailing list