linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/16] Add vTPM support to SLOF
@ 2015-08-08  1:54 Stefan Berger
  2015-08-08  1:54 ` [PATCH 01/16] Add a TPM driver implementation Stefan Berger
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Stefan Berger @ 2015-08-08  1:54 UTC (permalink / raw)
  To: linuxppc-dev, nikunj, aik, pmac
  Cc: gcwilson, dimitris, latten, lo1, stefanb, Stefan Berger

The following series of patches adds TPM support to SLOF.
In particular it adds the following:

- TPM drivers for hardware interface and CRQ interface
- TPM initialization
- TPM logging area and firmware API to transfer it to the OS
  (measurements are visible in sysfs)
- Some measurement code (Static Core Root Of Trust)
- TPM menu (accessible via 't' key during boot if TPM is available)
- Firmware API extensions following Power Firmware Doc
  (to make trusted grub work)

Necessarily, some of its parts are written in Forth, many are written
in 'C'. The extensions are known to work with QEMU for ppc64 running Linux.

Patches 4-6 will eventually need to be merged to avoid compiler warnings
related to unused functions.

Regards,
    Stefan

Stefan Berger (16):
  Add a TPM driver implementation
  Add TPM initialization support
  Add sha1 implementation
  Add initial support for logging
  Extend internal firmware API
  Return value of actual log in sml-get-handover-size
  Perform some initial measurements
  Add support for controlling the states of the TPM
  Add support for a TPM menu to control the state of the TPM
  Implement measurements of the master boot record
  Measure the static core root of trust for measurements
  Add TPM firmware API calls hash-all, log-event, hash-log-extend-event
  Add TPM firmware API call get-maximum-cmd-size
  Add TPM firmware API call pass-through-to-tpm
  Add TPM firmware API call get-state
  Add TPM firmware API call get-failure-reason

 board-js2x/slof/OF.fs               |    2 +
 board-qemu/Makefile                 |    2 +-
 board-qemu/slof/Makefile            |   10 +-
 board-qemu/slof/OF.fs               |    7 +
 board-qemu/slof/tree.fs             |    3 +
 board-qemu/slof/vio-vtpm-cdriver.fs |  144 ++++
 board-qemu/slof/vtpm-sml.fs         |  108 +++
 include/helpers.h                   |    1 +
 lib/Makefile                        |    2 +-
 lib/libtpm/Makefile                 |   51 ++
 lib/libtpm/sha1.c                   |  197 +++++
 lib/libtpm/sha1.h                   |   20 +
 lib/libtpm/tcgbios.c                | 1563 +++++++++++++++++++++++++++++++++++
 lib/libtpm/tcgbios.h                |   53 ++
 lib/libtpm/tcgbios_int.h            |  206 +++++
 lib/libtpm/tpm.code                 |  207 +++++
 lib/libtpm/tpm.in                   |   33 +
 lib/libtpm/tpm_drivers.c            |  456 ++++++++++
 lib/libtpm/tpm_drivers.h            |   93 +++
 slof/fs/packages/disk-label.fs      |    6 +-
 slof/fs/start-up.fs                 |    9 +
 slof/fs/tpm/tpm-static.fs           |  351 ++++++++
 slof/helpers.c                      |    6 +
 23 files changed, 3524 insertions(+), 6 deletions(-)
 create mode 100644 board-qemu/slof/vio-vtpm-cdriver.fs
 create mode 100644 board-qemu/slof/vtpm-sml.fs
 create mode 100644 lib/libtpm/Makefile
 create mode 100644 lib/libtpm/sha1.c
 create mode 100644 lib/libtpm/sha1.h
 create mode 100644 lib/libtpm/tcgbios.c
 create mode 100644 lib/libtpm/tcgbios.h
 create mode 100644 lib/libtpm/tcgbios_int.h
 create mode 100644 lib/libtpm/tpm.code
 create mode 100644 lib/libtpm/tpm.in
 create mode 100644 lib/libtpm/tpm_drivers.c
 create mode 100644 lib/libtpm/tpm_drivers.h
 create mode 100644 slof/fs/tpm/tpm-static.fs

-- 
1.9.3

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-08-08  1:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08  1:54 [PATCH 00/16] Add vTPM support to SLOF Stefan Berger
2015-08-08  1:54 ` [PATCH 01/16] Add a TPM driver implementation Stefan Berger
2015-08-08  1:54 ` [PATCH 02/16] Add TPM initialization support Stefan Berger
2015-08-08  1:54 ` [PATCH 03/16] Add sha1 implementation Stefan Berger
2015-08-08  1:54 ` [PATCH 04/16] Add initial support for logging Stefan Berger
2015-08-08  1:54 ` [PATCH 05/16] Extend internal firmware API Stefan Berger
2015-08-08  1:54 ` [PATCH 06/16] Return value of actual log in sml-get-handover-size Stefan Berger
2015-08-08  1:54 ` [PATCH 07/16] Perform some initial measurements Stefan Berger
2015-08-08  1:54 ` [PATCH 08/16] Add support for controlling the states of the TPM Stefan Berger
2015-08-08  1:54 ` [PATCH 09/16] Add support for a TPM menu to control the state " Stefan Berger
2015-08-08  1:54 ` [PATCH 10/16] Implement measurements of the master boot record Stefan Berger
2015-08-08  1:55 ` [PATCH 11/16] Measure the static core root of trust for measurements Stefan Berger
2015-08-08  1:55 ` [PATCH 12/16] Add TPM firmware API calls hash-all, log-event, hash-log-extend-event Stefan Berger
2015-08-08  1:55 ` [PATCH 13/16] Add TPM firmware API call get-maximum-cmd-size Stefan Berger
2015-08-08  1:55 ` [PATCH 14/16] Add TPM firmware API call pass-through-to-tpm Stefan Berger
2015-08-08  1:55 ` [PATCH 15/16] Add TPM firmware API call get-state Stefan Berger
2015-08-08  1:55 ` [PATCH 16/16] Add TPM firmware API call get-failure-reason Stefan Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).