[PATCH 0/2] Add session handling to tpm spaces

2017-01-27 Thread James Bottomley
Here's round two of the session handling patches. I folded in the review feedback (really all to patch 1) and tidied up a few parts of patch 2. James --- James Bottomley (2): tpm2: add session handle context saving and restoring to the space code tpm2-space: add handling for global session

[PATCH 0/2] Add session handling to tpm spaces

2017-01-23 Thread James Bottomley
These two patches are easily separated. The first does session handling. This incarnation uses TPM_RC_REFERENCE_H0 errors from context save or load to signal when a session has been flushed (so it no longer does tracking or flush emulation). The second patch does management for session exhaustio