From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41671 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqWux-0000B7-IB for qemu-devel@nongnu.org; Fri, 18 Feb 2011 15:27:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqWuw-0005ug-BP for qemu-devel@nongnu.org; Fri, 18 Feb 2011 15:27:07 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:42079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqWuw-0005uS-6L for qemu-devel@nongnu.org; Fri, 18 Feb 2011 15:27:06 -0500 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p1IK2i5j032666 for ; Fri, 18 Feb 2011 15:02:44 -0500 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 p1IKR3Bk166014 for ; Fri, 18 Feb 2011 15:27:03 -0500 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 p1IKR2p7025345 for ; Fri, 18 Feb 2011 18:27:03 -0200 Message-ID: <4D5ED615.60801@linux.vnet.ibm.com> Date: Fri, 18 Feb 2011 15:27:01 -0500 From: Stefan Berger MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface References: <1298043215-10083-1-git-send-email-andreas.niederl@iaik.tugraz.at> <1298043215-10083-2-git-send-email-andreas.niederl@iaik.tugraz.at> <4D5EA02D.4060801@linux.vnet.ibm.com> <4D5EAE53.9010301@iaik.tugraz.at> In-Reply-To: <4D5EAE53.9010301@iaik.tugraz.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Niederl Cc: qemu-devel@nongnu.org On 02/18/2011 12:37 PM, Andreas Niederl wrote: > On 02/18/2011 05:37 PM, Stefan Berger wrote: >> On 02/18/2011 10:33 AM, Andreas Niederl wrote: >>> This implementation is based on the TPM 1.2 interface for virtualized TPM >>> devices from the Xen-4.0.0 ioemu-qemu-xen fork. >>> >>> A backend driver infrastructure is provided to be able to use different >>> device backends. > [...] >> I have a tpm_tis.c with major changes in it getting rid of the polling, >> closer to specs that passes a test suite and a registerable backend as >> well that has several more interface functions, due to support for >> snapshotting etc. Unfortunately it doesn't make much sense for me to >> post it since the backend is based on a library that's currently in the >> Fedora review process and nobody else could build or test it -- unless >> there really was interest in reviewing at least some part of it. > So I'm guessing that this library is not publicly available right now? Not via the fedora repository at least. So yum install does not work, yet. > Is this backend meant for integration into QEMU or does it run as > separate process? > The backend is meant for integration in Qemu. It runs as a thread. > How/Where could I integrate a passthrough backend like the one in this > patch series? > It's possible via similar mechanisms as you have, just the interface is bigger and main code calls into the interface at different times. I'd need to share the code with you. > The polling code isn't really necessary for the host backend, I left it > there just in case it would be needed by such a socket interface as is > used in the Xen fork. > I don't think it's necessary to have it all. In the new code, the frontend delivers a request to the backend and provides a callback function for delivering the response back once received. >> It would certainly be desirable if your backend and mine could be >> accommodate. > Of course. > Let's see how we do this. Stefan > Regards, > Andreas >