From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6i0C-0006M5-93 for qemu-devel@nongnu.org; Wed, 29 Aug 2012 09:08:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6i06-0003rc-BF for qemu-devel@nongnu.org; Wed, 29 Aug 2012 09:08:12 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:45764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6i06-0003rT-4g for qemu-devel@nongnu.org; Wed, 29 Aug 2012 09:08:06 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Aug 2012 07:08:05 -0600 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 2E4A51FF003C for ; Wed, 29 Aug 2012 07:08:01 -0600 (MDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q7TD7GPE184670 for ; Wed, 29 Aug 2012 07:07:17 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q7TD8c3U015701 for ; Wed, 29 Aug 2012 07:08:38 -0600 Message-ID: <503E1401.7080700@linux.vnet.ibm.com> Date: Wed, 29 Aug 2012 09:07:13 -0400 From: Stefan Berger MIME-Version: 1.0 References: <5032B65C.3000009@scytl.com> In-Reply-To: <5032B65C.3000009@scytl.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] TPM does not seem to work under QEMU with TPM patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jordi Cucurull Juan Cc: qemu-devel@nongnu.org On 08/20/2012 06:12 PM, Jordi Cucurull Juan wrote: > Dear all, > > I am testing the TPM patches of Stefan Berger to provide TPM support > to QEMU. Nevertheless I have not managed to run them successfully. > During the compilation of QEMU with his patches (V18 for revision > 563987d) I have not had any issue. But, I have a virtual machine based > on CentOS 6.2 and the TPM does not seem to be present. I run the > machine with the following command line (as a root user): > > # /usr/local/bin/qemu-system-x86_64 -hda qemu-disk-centos.img -m 1024 > -boot d -enable-kvm -usbdevice tablet -k es -tpmdev > passthrough,id=tpm0,path=/dev/tpm0 -device tpm-tis,tpmdev=tpm0 > > My real machine has an Infineon TPM v1.2. When I try to load the TSS > library (Trousers) inside the client machine (the CentOS 6.2) it > throws the following error: > > insmod: error inserting > '/lib/modules/2.6.32-279.5.1.el6.x86_64/kernel/drivers/char/tpm/tpm_atmel.ko': > -1 no such device > You have to use tpm_tis. Unless you are using the SeaBIOS extensions for TPM support as well you have do modprobe tpm_tis force=1 or in the grub command line tpm_tis.force=1 The 'force' parameter is necessary if ACPI tables for TPM are missing and those are only provided once SeaBIOS has been patched with TPM support. Stefan > Apart from this, QEMU does not throw any error. Should I enable > something else to have access to the TPM? In addition, I do not see > any /dev/vtpm0 device in my real machine. > > > Best regards, > Jordi. > >