Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-15 Thread Jason Gunthorpe
On Tue, Mar 14, 2017 at 02:42:51PM -0700, James Bottomley wrote: > On Tue, 2017-03-14 at 15:24 -0600, Jason Gunthorpe wrote: > > On Tue, Mar 14, 2017 at 07:58:37PM +0100, Peter Huewe wrote: > > > > > > In practice, I suspect that a single user space application won't > > > > support both TPMs. >

Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-14 Thread James Bottomley
On Tue, 2017-03-14 at 15:24 -0600, Jason Gunthorpe wrote: > On Tue, Mar 14, 2017 at 07:58:37PM +0100, Peter Huewe wrote: > > > > In practice, I suspect that a single user space application won't > > > support both TPMs. > > Think of init scripts. > > Which daemon should it start? > > Right, idea

Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-14 Thread Jason Gunthorpe
On Tue, Mar 14, 2017 at 07:58:37PM +0100, Peter Huewe wrote: > >In practice, I suspect that a single user space application won't > >support both TPMs. > Think of init scripts. > Which daemon should it start? Right, ideally we'd have a udev rule that triggers systemd to start the userspace daemo

Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-14 Thread Peter Huewe
Am 14. März 2017 19:18:15 MEZ schrieb Ken Goldman : >On 3/13/2017 3:10 AM, Peter Huewe wrote: > >> And yes you are right there is currently no way, except for trial and >> error, for the userspace to determine this. So an interface to get >> this information makes sense to me. > >In practice, I s

Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-14 Thread Ken Goldman
On 3/13/2017 3:10 AM, Peter Huewe wrote: And yes you are right there is currently no way, except for trial and error, for the userspace to determine this. So an interface to get this information makes sense to me. In practice, I suspect that a single user space application won't support both T