I think I may know why this is failing. in tpm2_auto_startup(), the device driver gets the command handle count from the TPM using a getcapability TPM2_CAP_COMMANDS.
The TPM does not treat the TPM2_FlushContext as a handle, because it can flush a session that is not TPM resident. Thus, command handle count is zero, and I suspect that the RM doesn't try to map it. A solution may be to just special case this flushcontext and set the command handle count to 1 in the table. Then tpm2_map_command() will see nr_handles == 1 and do the mapping. ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ tpmdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
