Re: [libvirt] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2015-11-17 Thread Stefan Berger
On 11/17/2015 09:24 AM, Daniel P. Berrange wrote: On Tue, Nov 17, 2015 at 09:18:29AM -0500, Stefan Berger wrote: To get that path right we need to test it's availability by opening it. Unfortunately there's problem with that now related to the test case below where, if the test is run as

Re: [libvirt] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2015-11-17 Thread Daniel P. Berrange
On Tue, Nov 17, 2015 at 10:24:51AM -0500, Stefan Berger wrote: > On 11/17/2015 09:24 AM, Daniel P. Berrange wrote: > >On Tue, Nov 17, 2015 at 09:18:29AM -0500, Stefan Berger wrote: > >> > >>To get that path right we need to test it's availability by opening it. > >>Unfortunately there's problem

Re: [libvirt] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2015-11-17 Thread Daniel P. Berrange
On Tue, Nov 17, 2015 at 09:18:29AM -0500, Stefan Berger wrote: > On 11/16/2015 10:12 PM, Stefan Berger wrote: > >Adapt the sysfs TPM command cancel path for the TPM driver that > >does not use a miscdevice anymore since Linux 4.0. Support old > >and new paths. > > > >Signed-off-by: Stefan Berger

Re: [libvirt] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2015-11-17 Thread Stefan Berger
On 11/16/2015 10:12 PM, Stefan Berger wrote: Adapt the sysfs TPM command cancel path for the TPM driver that does not use a miscdevice anymore since Linux 4.0. Support old and new paths. Signed-off-by: Stefan Berger --- src/util/virtpm.c

[libvirt] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2015-11-16 Thread Stefan Berger
Adapt the sysfs TPM command cancel path for the TPM driver that does not use a miscdevice anymore since Linux 4.0. Support old and new paths. Signed-off-by: Stefan Berger --- src/util/virtpm.c | 21 +++--