From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlJoc-0000p5-IW for qemu-devel@nongnu.org; Tue, 26 Nov 2013 09:40:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlJoW-0002sC-F1 for qemu-devel@nongnu.org; Tue, 26 Nov 2013 09:40:38 -0500 Received: from e9.ny.us.ibm.com ([32.97.182.139]:54196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlJoW-0002s2-3w for qemu-devel@nongnu.org; Tue, 26 Nov 2013 09:40:32 -0500 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Nov 2013 09:40:30 -0500 Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 9DB4CC90042 for ; Tue, 26 Nov 2013 09:40:26 -0500 (EST) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp22034.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rAQEeSWZ8192488 for ; Tue, 26 Nov 2013 14:40:28 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rAQEeR3D009345 for ; Tue, 26 Nov 2013 09:40:27 -0500 Message-ID: <5294B2DB.5020301@linux.vnet.ibm.com> Date: Tue, 26 Nov 2013 09:40:27 -0500 From: Corey Bryant MIME-Version: 1.0 References: <945CA011AD5F084CBEA3E851C0AB2889FD4A5E@SHSMSX101.ccr.corp.intel.com> <52935653.1020603@linux.vnet.ibm.com> <945CA011AD5F084CBEA3E851C0AB2889FD5BA9@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <945CA011AD5F084CBEA3E851C0AB2889FD5BA9@SHSMSX101.ccr.corp.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] tpm: Provide libtpms software TPM backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Xu, Quan" Cc: "qemu-devel@nongnu.org" On 11/25/2013 10:04 PM, Xu, Quan wrote: > Thanks Bryant, this problem has been solved by following "http://www.mail-archive.com/qemu-devel@nongnu.org/msg200808.html". > But there is another problem when run configure with "./configure --target-list=x86_64-softmmu --enable-tpm". The value of "libtpms" is still "no". when I modified "tpm_libtpms" to "yes" in configure file directly and make, then reported with error > "hw/tpm/tpm_libtpms.c:21:33: fatal error: libtpms/tpm_library.h: No such file or directory". Now I am installing libtpms with https://github.com/coreycb/libtpms for libtpms lib. Could you share specific step to configure QEMU based on your patch, if it comes > easily to you? Here's what I've been using to build libtpms: $ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' $ export CFLAGS $ ./configure --build=x86_64-redhat-linux-gnu --prefix=/usr --libdir=/usr/lib64 $ make $ sudo make install And then the configure you're using above should work for QEMU. > BTW, one target of my team is enabling stubdom vtpm for HVM virtual machine on Xen virtualization, your patches and seabios are big breakthroughs. My team is very interested to collaborate with you / Qemu community on similar areas. That's great to hear! Unfortunately, the current approach of linking QEMU against libtpms doesn't look like it's going to make it upstream. So it looks like we need to take a different approach. Btw, I thought Xen already had TPM support. Is that not supported in stubdom's? -- Regards, Corey Bryant > > I'd be really pleased if you can help me on these issues. > > Quan Xu > Intel > > >> -----Original Message----- >> From: Corey Bryant [mailto:coreyb@linux.vnet.ibm.com] >> Sent: Monday, November 25, 2013 9:53 PM >> To: Xu, Quan >> Cc: qemu-devel@nongnu.org >> Subject: Re: [Qemu-devel] [PATCH 4/4] tpm: Provide libtpms software TPM >> backend >> >> >> >> On 11/24/2013 10:36 PM, Xu, Quan wrote: >>> Bryant, >>> >>> I found that there is some conflict in qemu-options.hx between your >> patch andqemu-1.7.0-rc1.tar.bz2 >> . >>> >>> What QEMU version does this patch base on? Thanks. >>> >>> >>> >>> >>> >>> Quan Xu >>> >>> Intel >>> >>> >>> >> >> Thanks Quan. I believe I built these on top of commit >> c2d30667760e3d7b81290d801e567d4f758825ca. I don't think this series is going >> to make it upstream though so I likely won't be submitting a v2. >> >> -- >> Regards, >> Corey Bryant > >