commit | a77bf0779e1005c9fd840955193ac7257d67bc05 | [log] [tgz] |
---|---|---|
author | Andrey Pronin <apronin@google.com> | Wed Jan 26 20:41:49 2022 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 16 05:08:21 2022 |
tree | f64a48b91fc35d5760bca966436e0effc9e5cacb | |
parent | 0524768f7820f827b0b2c8d74fba8d038166364c [diff] |
tpm2: support capturing/restoring state of orderly spaces This CL provides utility functions for copying the current state of RAM-backed nv indices to an alt location in RAM and restoring from there to allow saving this state over TPM reset. BUG=b:201101365 TEST=1) create an orderly counter 2) increment it 3) trigger EC reset 4) verify that the counter value was preserved Change-Id: Ia074e5603e4a99c7de4b71bcbeae90175ccfe861 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tpm2/+/3417937 Reviewed-by: Mary Ruthven <mruthven@chromium.org> Auto-Submit: Andrey Pronin <apronin@chromium.org> Tested-by: Andrey Pronin <apronin@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Andrey Pronin <apronin@chromium.org>