Re: [Qemu-devel] [PATCH 7/7] tpm: New backend driver to support TPM emulator

2017-04-05 Thread Daniel P. Berrange
On Fri, Mar 31, 2017 at 04:10:17PM +0300, Amarnath Valluri wrote: > +static int tpm_emulator_spawn_emulator(TPMEmulator *tpm_pt) > +{ > +int fds[2]; > +int ctrl_fds[2]; > +pid_t cpid; > + > +if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) < 0) { > +return -1; > +} > + >

Re: [Qemu-devel] [PATCH 7/7] tpm: New backend driver to support TPM emulator

2017-04-04 Thread Marc-André Lureau
Hi (just a quick review, there will be more once the design discussion is over) On Fri, Mar 31, 2017 at 5:03 PM Amarnath Valluri wrote: > This change introduces a new TPM backend driver that can communicates with > communicate > swtpm(software TPM emulator) using unix domain socket interface

[Qemu-devel] [PATCH 7/7] tpm: New backend driver to support TPM emulator

2017-03-31 Thread Amarnath Valluri
This change introduces a new TPM backend driver that can communicates 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