On 08/19/2011 01:33 PM, Marc Jones wrote:
On Wed, Aug 10, 2011 at 10:51 AM, Stefan Berger email@example.com wrote:
This patch adds an implementation of a TPM TIS driver for the TPM TIS emulation supported by Qemu (patches posted, not in git yet). Usage of the driver is broken up into several functions. The driver is cleanly separated from the rest of the code through an interface holding pointers to the driver's functions. A client using this driver first probes whether the TPM TIS interface is available (probe function) and then invokes the interface function to initialze the interface and send requests and receive responses.
Possible future extensions *could* include a virtio interface for the TPM with a corresponding driver here.
- reworked timeouts; not hardcoded anymore
- introducing a configurable threashold as part of the driver interface structure below which the TPM is used for calculating the sha1
- adapted tpm_drivers.c to be under LGPLv3
Signed-off-by: Stefan Bergerstefanb@linux.vnet.ibm.com
Please excuse my TPM ignorance, but is the emulation of a specific hardware device or has the TCG defined the registers etc for TPM hardware?
Qemu patches provide the emulation of the specific hardware device that TCG (trusted comp. group) has defined the registers for. SeaBIOS implements a driver for it.