From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH] tpm-emulator: add a TPM emulator pass through Date: Mon, 09 Jan 2017 10:51:17 -0800 Message-ID: <1483987877.2398.9.camel@HansenPartnership.com> References: <1483923513.2644.1.camel@HansenPartnership.com> <20170109154945.GA28023@obsidianresearch.com> <1483978982.2448.7.camel@HansenPartnership.com> <20170109165416.GA13960@obsidianresearch.com> <1483981445.2398.4.camel@HansenPartnership.com> <20170109171430.GA18648@obsidianresearch.com> <7bef4616-cd69-2798-fc1f-f7eee2fb8c98@linux.vnet.ibm.com> <1483986287.2398.5.camel@HansenPartnership.com> <1e9d8540-63b9-e6fe-d643-30705030d49c@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1e9d8540-63b9-e6fe-d643-30705030d49c-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Stefan Berger , Jason Gunthorpe Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On Mon, 2017-01-09 at 13:41 -0500, Stefan Berger wrote: > On 01/09/2017 01:24 PM, James Bottomley wrote: > > On Mon, 2017-01-09 at 13:03 -0500, Stefan Berger wrote: > > > Examples: > > > ./src/vtpmctrl --tpm2 \ > > > --spawn /bin/swtpm chardev --tpm2 --fd %fd --tpmstate > > > dir=/tmp > > git head for swtpm is giving > > > > Created TPM device /dev/tpm1; vTPM device has fd 4, major/minor = > > 247/1. > > chardev: unrecognized option '--tpm2' > > You need the tpm2-preview branches of libtpms and swtpm. Why you need > them is related to the format in which the persistent data are > written by the TPM 2 implementation. For QEMU it should probably big > endian, but so far it's not. > > Here's a short wiki of libtpms pointing out the issues. > > https://github.com/stefanberger/libtpms/wiki > > https://github.com/stefanberger/libtpms/tree/tpm2-previewa.rev138 > https://github.com/stefanberger/swtpm/tree/tpm2-preview Basically the synopsis is that it's not yet working well enough to run the resource manager smoke tests and I need to continue using the ibmswtpm2 as the emulator or run against the real thing for the time being. James ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi