diff options
author | Matthew Garrett <[email protected]> | 2019-05-20 13:54:59 -0700 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2019-06-24 23:57:49 +0300 |
commit | c46f3405692de1ac82240d927b9c7a0f9d6a4a36 (patch) | |
tree | a7b4937f49900d4c1f46104326fe9b96b38cfbcf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 44038bc514a244fba9d0d6d698b15970185ac251 (diff) |
tpm: Reserve the TPM final events table
UEFI systems provide a boot services protocol for obtaining the TPM
event log, but this is unusable after ExitBootServices() is called.
Unfortunately ExitBootServices() itself triggers additional TPM events
that then can't be obtained using this protocol. The platform provides a
mechanism for the OS to obtain these events by recording them to a
separate UEFI configuration table which the OS can then map.
Unfortunately this table isn't self describing in terms of providing its
length, so we need to parse the events inside it to figure out how long
it is. Since the table isn't mapped at this point, we need to extend the
length calculation function to be able to map the event as it goes
along.
(Fixes by Bartosz Szczepanek <[email protected]>)
Signed-off-by: Matthew Garrett <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Bartosz Szczepanek <[email protected]>
Tested-by: Bartosz Szczepanek <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions