From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3YMv-0006mJ-Fw for qemu-devel@nongnu.org; Mon, 20 Aug 2012 16:14:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3YMu-0006gw-0w for qemu-devel@nongnu.org; Mon, 20 Aug 2012 16:14:37 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:48810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3YMt-0006ge-T5 for qemu-devel@nongnu.org; Mon, 20 Aug 2012 16:14:35 -0400 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Aug 2012 16:14:33 -0400 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 1482F6E8053 for ; Mon, 20 Aug 2012 16:14:32 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q7KKEVvJ105738 for ; Mon, 20 Aug 2012 16:14:31 -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 q7KKEVK5023171 for ; Mon, 20 Aug 2012 17:14:31 -0300 Date: Mon, 20 Aug 2012 15:14:54 -0500 From: Kent Yoder Message-ID: <20120820201451.GA19204@linux.vnet.ibm.com> References: <5032B65C.3000009@scytl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5032B65C.3000009@scytl.com> 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 Hi Jordi, On Mon, Aug 20, 2012 at 06:12:44PM -0400, 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 This should be fine - the tpm_tis driver should be driving the vtpm. > > 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. As I understand them, the qemu patches allow direct writing from the guest to the host's /dev/tpm0, so you wouldn't see a new device node. Kent > > Best regards, > Jordi. > > > -- > Jordi Cucurull Juan > Researcher > Scytl Secure Electronic Voting > Plaça Gal·la Placidia, 1-3, 1st floor · 08006 Barcelona > Phone: + 34 934 230 324 > Fax + 34 933 251 028 > jordi.cucurull@scytl.com > http://www.scytl.com > > NOTICE: The information in this e-mail and in any of its attachments is confidential and intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, any disclosure, copying, distribution or retaining of this message or any part of it, without the prior written consent of Scytl Secure Electronic Voting, SA is prohibited and may be unlawful. If you have received this in error, please contact the sender and delete the material from any computer. > > Your data are in a file owned by Scytl Secure Electronic Voting, S.A. You can exercice your rights of access, rectification, cancellation and opposition by contacting Scytl Secure Electronic Voting, S.A. at the following address: Gal·la Placídia, 1-3. 1st, 08006 Barcelona (Spain), according to the Organic Law 15/1999, of 13th December of Protection of Personal Data. > >