From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMTVY-0002qD-PI for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMTVU-0007Ku-PO for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:56 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:49009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMTVU-0007Kq-Jq for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:52 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e1.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4HN5eTk032154 for ; Tue, 17 May 2011 19:05:40 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4HNGpRi080040 for ; Tue, 17 May 2011 19:16:51 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4HJGdb5030215 for ; Tue, 17 May 2011 16:16:39 -0300 Message-ID: <4DD301E2.6040801@linux.vnet.ibm.com> Date: Tue, 17 May 2011 19:16:50 -0400 From: Stefan Berger MIME-Version: 1.0 References: <20110506173224.278066589@linux.vnet.ibm.com> <20110506173244.297608456@linux.vnet.ibm.com> <20110517205832.GA21516@mail.hallyn.com> In-Reply-To: <20110517205832.GA21516@mail.hallyn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Serge E. Hallyn" Cc: qemu-devel@nongnu.org, andreas.niederl@iaik.tugraz.at On 05/17/2011 04:58 PM, Serge E. Hallyn wrote: > Quoting Stefan Berger (stefanb@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=,path=, > 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