From: "Valluri, Amarnath" <amarnath.valluri@intel.com>
To: "stefanb@linux.vnet.ibm.com" <stefanb@linux.vnet.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "dgilbert@redhat.com" <dgilbert@redhat.com>,
"armbru@redhat.com" <armbru@redhat.com>,
"marcandre.lureau@gmail.com" <marcandre.lureau@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v10 8/9] tpm: Added support for TPM emulator
Date: Wed, 4 Oct 2017 07:45:01 +0000 [thread overview]
Message-ID: <1507103131.2282.5.camel@intel.com> (raw)
In-Reply-To: <306334f5-358e-a7df-b663-b1b77e78c934@linux.vnet.ibm.com>
On Tue, 2017-10-03 at 17:21 -0400, Stefan Berger wrote:
> On 09/29/2017 07:10 AM, Amarnath Valluri wrote:
> >
> > This change introduces a new TPM backend driver that can
> > communicate with
> > swtpm(software TPM emulator) using unix domain socket interface.
> > QEMU talks to
> > TPM emulator using QEMU's socket-based chardev backend device.
> >
> > Swtpm uses two Unix sockets for communications, one for plain TPM
> > commands and
> > responses, and one for out-of-band control messages. QEMU passes
> > data socket to
> > be used over the control channel.
> >
> > The swtpm and associated tools can be found here:
> > https://github.com/stefanberger/swtpm
> >
> > The swtpm's control channel protocol specification can be found
> > here:
> > https://github.com/stefanberger/swtpm/wiki/Control-Channel-Spe
> > cification
> >
> > Usage:
> > # setup TPM state directory
> > mkdir /tmp/mytpm
> > chown -R tss:root /tmp/mytpm
> > /usr/bin/swtpm_setup --tpm-state /tmp/mytpm --createek
> To run this, one needs the latest version of swtpm that supports the
> file descriptor passing.
> Then one can start the swtpm like this:
>
> swtpm socket --tpmstate dir=/tmp/mytpm --ctrl
> type=unixio,path=/tmp/swtpm-sock --log level=20
>
> I tested the SeaBIOS menu items so far and that works fine, also for
> TPM2 (--tpm2).
Greate, Thanks for you feedback.
- Amarnath
next prev parent reply other threads:[~2017-10-04 7:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 11:10 [Qemu-devel] [PATCH v10 0/9] Provide support for the software TPM Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 1/9] tpm-backend: Remove unneeded member variable from backend class Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 2/9] tpm-backend: Move thread handling inside TPMBackend Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 3/9] tpm-backend: Initialize and free data members in it's own methods Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 4/9] tpm-backend: Made few interface methods optional Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 5/9] tpm backend: Add new api to read backend TpmInfo Amarnath Valluri
2017-10-04 13:45 ` Marc-André Lureau
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 6/9] tpm-backend: Move realloc_buffer() implementation to tpm-tis model Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 7/9] tpm-passthrough: move reusable code to utils Amarnath Valluri
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 8/9] tpm: Added support for TPM emulator Amarnath Valluri
2017-10-03 21:21 ` Stefan Berger
2017-10-04 7:45 ` Valluri, Amarnath [this message]
2017-10-04 13:35 ` Stefan Berger
2017-09-29 11:10 ` [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place Amarnath Valluri
2017-09-29 12:16 ` Marc-André Lureau
2017-10-04 13:32 ` Stefan Berger
2017-10-19 7:45 ` Richard W.M. Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507103131.2282.5.camel@intel.com \
--to=amarnath.valluri@intel.com \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).