From: Cihula, J. <jos...@in...> - 2008-02-15 04:27:33
|
On Thursday, February 14, 2008 7:29 PM, Jun Koi wrote: > On 2/15/08, Cihula, Joseph <jos...@in...> wrote: >> On Thursday, February 14, 2008 3:30 AM, Jun Koi wrote: > Hi, >> > >> > I am enjoying reading the tboot source code. I found that one of the >> > first steps of tboot is to check some TPM functions. However, I dont >> > understand the idea behind some tests, like in the function >> > tpm_unit_test_before_senter(). >> > >> > Joseph, could you explain a bit about the motivation of those tests? >> >> >> The various test routines were used to validate that the TPM code was >> working correctly. > > Is it necessary to do the test? Or we can suppose that if machine > supports SINIT insn, TPM would work flawlessly? > > Or did you see some malfunction TPM already? The tests were to exercise the TPM code in tpm.c. They are currently #ifdef'ed out and so don't get run at all. > > Thanks, > Jun |