From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMTUg-0002CN-Qc for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMTUf-0007Hp-OT for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:02 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:48943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMTUf-0007HU-M4 for qemu-devel@nongnu.org; Tue, 17 May 2011 19:16:01 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e1.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4HN4ktF031473 for ; Tue, 17 May 2011 19:04:46 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4HNFv5s1429596 for ; Tue, 17 May 2011 19:15:57 -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 p4HJFjHN027074 for ; Tue, 17 May 2011 16:15:45 -0300 Received: from [9.59.241.154] (d941e-10.watson.ibm.com [9.59.241.154]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4HJFjms027067 for ; Tue, 17 May 2011 16:15:45 -0300 Message-ID: <4DD301A9.4050608@linux.vnet.ibm.com> Date: Tue, 17 May 2011 19:15:53 -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: qemu-devel@nongnu.org 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 >