[SeaBIOS] [PATCH V6 1/9] Add an implementation of a TPM TIS driver

Stefan Berger stefanb at linux.vnet.ibm.com
Fri Aug 19 21:13:42 CEST 2011


On 08/19/2011 01:33 PM, Marc Jones wrote:
> On Wed, Aug 10, 2011 at 10:51 AM, Stefan Berger
> <stefanb at linux.vnet.ibm.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.
>>
>> v6:
>>   - reworked timeouts; not hardcoded anymore
>>
>> v5:
>>   - introducing a configurable threashold as part of the driver interface
>>     structure below which the TPM is used for calculating the sha1
>>
>> v2:
>>   - adapted tpm_drivers.c to be under LGPLv3
>>
>> Signed-off-by: Stefan Berger<stefanb at linux.vnet.ibm.com>
> Hi Stefan,
>
> 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.

    Stefan




More information about the SeaBIOS mailing list