On 05/17/2011 04:58 PM, Serge E. Hallyn wrote:
Quoting Stefan Berger (stef...@linux.vnet.ibm.com):
This patch adds support for TPM command line options.
The command line supported here (considering the libtpms based
backend) are

./qemu-... -tpm type=<type>,path=<path to blockstorage file>,
Hm, I did

kvm -tpm type=builtin,path=tpm.img -m 1G disk.img -vnc :1

with disk.img being a newly installed VM.  I installed trousers
and tpm-tools, tried loading the tpm, tpm_tis, tpm_infineon, and
some other modules, /dev/tpm was never created, and

   tpm_takeownership

continued to give me:

Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), 
Communication failure

Which kernel module should work with builtin?
The device model is a tpm-tis. So modprobe tpm_tis should create a /dev/tpm0. If nothing else helps enable the DEBUG_TIS in hw/tpm_tis and recompile.

Did you start it with SeaBIOS and the TPM-related patches applied to it? If not, you'll have to initialize the TPM that otherwise the BIOS would do. Otherwise the debugging output from the tpm-tis should begin very early once the BIOS sends commands to the TIS/TPM.

Regards,
  Stefan
thanks,
-serge



Reply via email to