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>
Subject: Re: [Qemu-devel] [PATCH v4 8/8] tpm: Added support for TPM emulator
Date: Tue, 13 Jun 2017 09:12:36 +0000 [thread overview]
Message-ID: <1497345201.39827.1.camel@intel.com> (raw)
In-Reply-To: <dc6f405d-4420-4431-1d0f-28c4467256e1@linux.vnet.ibm.com>
On Mon, 2017-06-12 at 15:26 -0400, Stefan Berger wrote:
> On 06/05/2017 03:25 AM, Valluri, Amarnath wrote:
> >
> > On Wed, 2017-05-24 at 11:15 -0400, Stefan Berger wrote:
> > >
> > > On 05/16/2017 03:58 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.
> > > >
> > > > Swtpm uses two unix sockets, one for plain TPM commands and
> > > > responses, and one
> > > > for out-of-band control messages.
> > > >
> > > > 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-Channe
> > > > l-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
> > > >
> > > > # Ask qemu to use TPM emulator with given tpm state
> > > > directory
> > > > qemu-system-x86_64 \
> > > > [...] \
> > > > -tpmdev
> > > > emulator,id=tpm0,tpmstatedir=/tmp/mytpm,logfile=/tmp/swtpm.log
> > > > \
> > > > -device tpm-tis,tpmdev=tpm0 \
> > > > [...]
> > > >
> > > > Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> > > Since you are not supporting migration in this patch, you
> > > probably
> > > have
> > > to add a migrate_add_blocker() call somewhere along the lines of
> > > this
> > > here:
> > >
> > > https://github.com/stefanberger/qemu-tpm/commit/27d332dc3b2c6bfd0
> > > fcd3
> > > 8e69f5c899651f3a5d8#diff-3a0192eef5d20837af490c32bf396f4eR641
> > >
> > I need to dig a bit and femiliarize myself about 'migration'
> > support, I
> > guess i can send it as a separate patch ?
> Fine by me.
By the way, I included this migration blocker in my latest(v5) patch
series i sent.
- Amarnath
next prev parent reply other threads:[~2017-06-13 9:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 7:58 [Qemu-devel] [PATCH v4 0/8] Provide support for the software TPM emulator Amarnath Valluri
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 1/8] tpm-backend: Remove unneeded member variable from backend class Amarnath Valluri
2017-05-24 14:15 ` Stefan Berger
2017-05-24 14:34 ` Marc-André Lureau
2017-06-05 7:22 ` Valluri, Amarnath
2017-06-05 9:57 ` Marc-André Lureau
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 2/8] tpm-backend: Move thread handling inside TPMBackend Amarnath Valluri
2017-05-24 14:19 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 3/8] tpm-backend: Initialize and free data members in it's own methods Amarnath Valluri
2017-05-24 14:24 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 4/8] tpm-backend: Made few interface methods optional Amarnath Valluri
2017-05-24 14:28 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 5/8] tmp backend: Add new api to read backend TpmInfo Amarnath Valluri
2017-05-24 14:34 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 6/8] tpm-backend: Move realloc_buffer() implementation to tpm-tis model Amarnath Valluri
2017-05-24 14:37 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 7/8] tpm-passthrough: move reusable code to utils Amarnath Valluri
2017-05-24 14:39 ` Stefan Berger
2017-05-16 7:58 ` [Qemu-devel] [PATCH v4 8/8] tpm: Added support for TPM emulator Amarnath Valluri
2017-05-24 15:15 ` Stefan Berger
2017-06-05 7:25 ` Valluri, Amarnath
2017-06-12 19:26 ` Stefan Berger
2017-06-13 9:12 ` Valluri, Amarnath [this message]
2017-05-22 12:40 ` [Qemu-devel] [PATCH v4 0/8] Provide support for the software " Valluri, Amarnath
-- strict thread matches above, loose matches on Subject: below --
2017-05-02 12:25 [Qemu-devel] [PATCH v3 " no-reply
2017-05-04 11:35 ` [Qemu-devel] [PATCH v4 8/8] tpm: Added support for " Amarnath Valluri
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=1497345201.39827.1.camel@intel.com \
--to=amarnath.valluri@intel.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).