commit | 30887009e9b2466fa8bf718ed63681b3c04d8b7f | [log] [tgz] |
---|---|---|
author | Gang(Jimmy) Wei <gang.wei@intel.com> | Tue Dec 15 15:34:43 2015 -0600 |
committer | Gang Wei <gang.wei@intel.com> | Tue Dec 29 10:06:59 2015 +0800 |
tree | 6499a2efb99ffbb348f5874719ab57fd77e5f7b7 | |
parent | f92920dbcddd0b62d65c49ec139e25a39d6339df [diff] |
[resourcemgr]fix for Tss2_Sys_ContextSave(session) Execute tpmtest with resourcemgr connected to simulator, then follow the hint to run all tests in 2 - STARTUP TESTS, then run all tests in 10 - START_AUTH_SESSION TESTS, will get failure code 0xCF802(TSS2_RESMGR_FIND_FAILED). The root cause is that the in memory context will be flushed after running savecontext for a session, so the original code try to prevent resourcemgr automatically evicting the context again via setting foundEntryPtr->status.loaded = 0. But this will cause the final call to EvictEntities failed. The solution is to avoid calling into EvictEntities for Tss2_Sys_ContextSave(session) case while adding more if conditions.
This stack consists of the following layers from top to bottom:
Since the FAPI and ESAPI haven't been implemented yet, this repository only contains the SAPI and layers below it, plus a test application for exercising the SAPI.
The test application, tpmclient, tests many of the commands against the TPM 2.0 simulator. The tpmclient application can be altered and used as a sandbox to test and develop any TPM 2.0 command sequences, and provides an excellent development and learning vehicle.
TPM 2.0 specifications can be found at Trusted Computing Group.