tpm: Keep the active PCRs in the chip private data
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 24 Dec 2024 16:01:09 +0000 (08:01 -0800)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 7 Jan 2025 13:45:51 +0000 (15:45 +0200)
commitffdbf775e71b8160a37ca65bfa38ed037807dbf2
tree40bd279ee1ab66014d938f6e499ff162125695ac
parent8dc886ce314282de9d65fac1e8c68ee40d30f678
tpm: Keep the active PCRs in the chip private data

We have a lot of code trying to reason about the active TPM PCRs
when creating an EventLog. Since changing the active banks can't
be done on the fly and requires a TPM reset,  let's store them
in the chip private data instead.

Upcoming patches will use this during the EventLog creation.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/tpm-common.h
include/tpm-v2.h
lib/tpm-v2.c