[SeaBIOS] [PATCH V2 0/8] Add TPM support to SeaBIOS

Stefan Berger stefanb at linux.vnet.ibm.com
Tue Apr 5 07:38:35 CEST 2011


On 04/05/2011 01:17 AM, Kevin O'Connor wrote:
> On Mon, Apr 04, 2011 at 09:29:39PM -0400, Stefan Berger wrote:
>> The following set of patches add TPM and Trusted Computing support to SeaBIOS.
>> In particular the patches add:
> Thanks Stefan.
>
> In general, it looks okay to me.  Since this depends on a qemu change,
> though, I'd like to see a qemu/kvm maintaner ack (or the dependent
> changes committed in qemu) before committing to SeaBIOS.
>
>
> Some minor nits:
>
> Patch 4:
>> +// TCG BIOS extensions
>> +void tcpa_interrupt_handler16(struct bregs *regs);
> This looks stale.
Right... missed that one.
> Patch 5:
>> +#else
>> +
>> +static u32
>> +sha1_calc(const u8 *data, u32 length, u8 *hash)
>> +{
>> +    return sha1(data, length, hash);
> I'd prefer to avoid #ifdefs - it should be possible to do something
> like:
>
> sha1_calc(...) {
>      if (CONFIG_TPM_FOR_SHA1)
>           return tpm_sha1_calc(...);
>      return sha1(...);
> }
>
Will fix.
> Finally, can you briefly describe what services that require TPM
> support will now be available to end-users with this series?
>
I'll send a V3 tomorrow explaining in each patch what the effect should be.

   Stefan




More information about the SeaBIOS mailing list