Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-21 Thread Tadeusz Struk
On 06/21/2018 10:17 AM, Jarkko Sakkinen wrote: > On Tue, Jun 19, 2018 at 05:45:35PM -0700, Tadeusz Struk wrote: >> Hi Jarkko, >> Thanks for reviewing the patch. >> There are applications/frameworks where a worker thread is not an option. >> Take for example the IoT use-cases and frameworks like IoT

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-21 Thread Jarkko Sakkinen
On Tue, Jun 19, 2018 at 05:45:35PM -0700, Tadeusz Struk wrote: > Hi Jarkko, > Thanks for reviewing the patch. > There are applications/frameworks where a worker thread is not an option. > Take for example the IoT use-cases and frameworks like IoT.js, or "Node.js > for IoT". > They are all single t

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-21 Thread Tadeusz Struk
On 06/20/2018 10:26 PM, James Bottomley wrote: >> Yes, it does polling: >> http://docs.libuv.org/en/v1.x/design.html#the-i-o-loop > But that's for networking. You'll be talking to the TPM RM over the > file descriptor so that follows the thread pool model in > > http://docs.libuv.org/en/v1.x/desi

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-20 Thread James Bottomley
On Wed, 2018-06-20 at 18:24 -0700, Tadeusz Struk wrote: > On 06/20/2018 04:59 PM, James Bottomley wrote: > > I'm slightly surprised by this statement.  I thought IoT Node.js > > runtimes (of which there are far too many, so I haven't looked at > > all of them) use libuv or one of the forks: > > >

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-20 Thread Tadeusz Struk
On 06/20/2018 04:59 PM, James Bottomley wrote: > I'm slightly surprised by this statement. I thought IoT Node.js > runtimes (of which there are far too many, so I haven't looked at all > of them) use libuv or one of the forks: > > http://libuv.org/ > > As the basis for their I/O handling? While

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-20 Thread James Bottomley
On Tue, 2018-06-19 at 17:45 -0700, Tadeusz Struk wrote: > On 06/19/2018 06:10 AM, Jarkko Sakkinen wrote: > > On Tue, Jun 12, 2018 at 10:58:26AM -0700, Tadeusz Struk wrote: > > > The TCG SAPI specification [1] defines a set of functions, which > > > allows applications to use the TPM device in eithe

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-19 Thread Tadeusz Struk
On 06/19/2018 06:10 AM, Jarkko Sakkinen wrote: > On Tue, Jun 12, 2018 at 10:58:26AM -0700, Tadeusz Struk wrote: >> The TCG SAPI specification [1] defines a set of functions, which allows >> applications to use the TPM device in either blocking or non-blocking >> fashion. >> Each command defined by

Re: [PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-19 Thread Jarkko Sakkinen
On Tue, Jun 12, 2018 at 10:58:26AM -0700, Tadeusz Struk wrote: > The TCG SAPI specification [1] defines a set of functions, which allows > applications to use the TPM device in either blocking or non-blocking fashion. > Each command defined by the specification has a corresponding > Tss2_Sys__Prepa

[PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-12 Thread Tadeusz Struk
The TCG SAPI specification [1] defines a set of functions, which allows applications to use the TPM device in either blocking or non-blocking fashion. Each command defined by the specification has a corresponding Tss2_Sys__Prepare() and Tss2_Sys__Complete() call, which together with Tss2_Sys_Execut