From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Berger Subject: Re: [PATCH] tpm-emulator: add a TPM emulator pass through Date: Mon, 9 Jan 2017 13:41:52 -0500 Message-ID: <1e9d8540-63b9-e6fe-d643-30705030d49c@linux.vnet.ibm.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1483986287.2398.5.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: James Bottomley , Jason Gunthorpe Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net 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 Stefan ------------------------------------------------------------------------------ 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