From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48555 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7B4C-0007nj-LC for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7B4B-0005ub-Bh for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:33:28 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:54660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7B4B-0005pC-6O for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:33:27 -0400 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by e38.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p35IHlZf001174 for ; Tue, 5 Apr 2011 12:17:47 -0600 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 p35IXHIg086966 for ; Tue, 5 Apr 2011 12:33:18 -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 p35IcCuq001925 for ; Tue, 5 Apr 2011 12:38:12 -0600 Message-ID: <4D9B606C.2090105@linux.vnet.ibm.com> Date: Tue, 05 Apr 2011 14:33:16 -0400 From: Stefan Berger MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH V2 4/9] Add tpm_tis driver to build process References: <20110330194211.732385449@linux.vnet.ibm.com> <20110330194237.138721858@linux.vnet.ibm.com> <4D962E1C.2000203@linux.vnet.ibm.com> <4D9A79B2.2010502@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Blue Swirl On 04/05/2011 01:45 PM, Blue Swirl wrote: > On Tue, Apr 5, 2011 at 5:08 AM, Stefan Berger > wrote: >> On 04/03/2011 05:20 AM, Blue Swirl wrote: >>> On Fri, Apr 1, 2011 at 10:57 PM, Stefan Berger >>> wrote: >>>> On 04/01/2011 02:14 PM, Blue Swirl wrote: >>>> >>>> At this point there is no compile test needed since all code is 'there'. >>>> It's merely adding the front-end,i.e., the TPM TIS emulation to be >>>> compiled. >>> If the basic device (without the tpms-devel library) can be built on >>> any OS, the flag should go to default-configs/*86*-softmmu.mak. >>> >> It can be built on any OS, but it is of no use since the backend (libtpms) >> is only available on Linux and we don't support it on another OS. Unless >> someone else wants to port it to other OSes, I'd say that the test for Linux >> is useful. >> I'd actually also only compile the TIS if libtpms could be found, and >> terminate with an error message otherwise. I would add this restriction only >> in the last patch, so that in patch 4 at least for now the TIS can be built. >> Does that sound reasonable? > It should be possible to emulate the device (to some degree) without > relying on backend. See for example the recently committed smart card > device. > In case of a TPM, the specs are huge and translate into multiple 10k lines of code. If there was to be a dummy backend, all it could send back would be error messages... Stefan