Re: [PATCH 2/3] tpm: transition tpm_vtpm_proxy documentation to the Sphinx

2016-11-06 Thread Stefan Berger
and tpm_vtpm_proxy.c to be compatible with this approach and wrote associated documentation comments. Signed-off-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> Stefan? Reviewed-by: Stefan Berger <stef...@linux.vnet.ibm.com> /Jarkko --- Documentati

[PATCH v11 3/4] tpm: Proxy driver for supporting multiple emulated TPMs

2016-04-18 Thread Stefan Berger
. Since this requires the startup of the TPM, we send a startup for TPM 1.2 as well as TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> Reviewed-by: Jason Gunthorpe <jguntho...@obsidianresearch.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.o

[PATCH v10 4/5] tpm: Initialize TPM and get durations and timeouts

2016-04-15 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

Re: [PATCH v9 2/4] tpm: Proxy driver for supporting multiple emulated TPMs

2016-04-07 Thread Stefan Berger
On 04/07/2016 08:35 AM, Jarkko Sakkinen wrote: On Tue, Mar 29, 2016 at 02:19:12PM -0400, Stefan Berger wrote: This patch implements a proxy driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client device pair /dev/tpmX

Re: [v9,3/4] tpm: Initialize TPM and get durations and timeouts

2016-03-31 Thread Stefan Berger
On 03/31/2016 04:24 AM, Jarkko Sakkinen wrote: On Tue, Mar 29, 2016 at 02:19:13PM -0400, Stefan Berger wrote: Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. @@ -343,6 +362,55 @@ static const struct tpm_class_ops

[PATCH v9 3/4] tpm: Initialize TPM and get durations and timeouts

2016-03-29 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

[PATCH v9 2/4] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-29 Thread Stefan Berger
/dev/tpmX is the usual TPM device created by the core TPM driver. Applications or kernel subsystems can send TPM commands to it and the corresponding server-side file descriptor receives these commands and delivers them to an emulated TPM. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com&

Re: [v8,09/10] tpm: Initialize TPM and get durations and timeoutsg

2016-03-29 Thread Stefan Berger
On 03/29/2016 11:31 AM, Jarkko Sakkinen wrote: On Tue, Mar 22, 2016 at 06:54:30AM -0400, Stefan Berger wrote: On 03/22/2016 02:34 AM, Jarkko Sakkinen wrote: On Sun, Mar 13, 2016 at 06:54:39PM -0400, Stefan Berger wrote: Add the retrieval of TPM 1.2 durations and timeouts. Since this requires

Re: [v8,09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-22 Thread Stefan Berger
On 03/22/2016 02:34 AM, Jarkko Sakkinen wrote: On Sun, Mar 13, 2016 at 06:54:39PM -0400, Stefan Berger wrote: Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.

Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-19 Thread Stefan Berger
On 03/16/2016 04:42 PM, Jarkko Sakkinen wrote: On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote: + +/* above flags */ +#define VTPM_PROXY_FLAG_TPM2 1 /* emulator is TPM 2 */ + +/* all supported flags */ +#define VTPM_PROXY_FLAGS_ALL (VTPM_PROXY_FLAG_TPM2) This can be moved

Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-19 Thread Stefan Berger
On 03/16/2016 08:09 AM, Jarkko Sakkinen wrote: On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote: This patch implements a proxy driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client device pair /dev/tpmX

[PATCH v8 09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-13 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

[PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-13 Thread Stefan Berger
/dev/tpmX is the usual TPM device created by the core TPM driver. Applications or kernel subsystems can send TPM commands to it and the corresponding server-side file descriptor receives these commands and delivers them to an emulated TPM. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com&

Re: [PATCH v7 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-12 Thread Stefan Berger
On 03/12/2016 01:51 PM, Jarkko Sakkinen wrote: On Fri, Mar 11, 2016 at 09:51:03PM -0500, Stefan Berger wrote: This patch implements a proxy driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client device pair /dev/tpmX

[PATCH v7 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-11 Thread Stefan Berger
/dev/tpmX is the usual TPM device created by the core TPM driver. Applications or kernel subsystems can send TPM commands to it and the corresponding server-side file descriptor receives these commands and delivers them to an emulated TPM. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com&

[PATCH v7 09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-11 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

[PATCH v7 10/10] tpm: Add documentation for the tpm_vtpm device driver

2016-03-11 Thread Stefan Berger
Add documentation for the tpm_vtpm device driver that implements support for providing TPM functionality to Linux containers. Parts of this documentation were recycled from the Xen vTPM device driver documentation. Update the documentation for the ioctl numbers. Signed-off-by: Stefan Berger

Re: [PATCH v6 08/11] tpm: Driver for supporting multiple emulated TPMs

2016-03-09 Thread Stefan Berger
On 03/09/2016 01:01 PM, Andy Lutomirski wrote: On Wed, Mar 9, 2016 at 9:39 AM, Stefan Berger <stef...@linux.vnet.ibm.com> wrote: This patch implements a driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client

[PATCH v6 09/11] tpm: Initialize TPM and get durations and timeouts

2016-03-09 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

[PATCH v6 10/11] tpm: Add documentation for the tpm_vtpm device driver

2016-03-09 Thread Stefan Berger
Add documentation for the tpm_vtpm device driver that implements support for providing TPM functionality to Linux containers. Parts of this documentation were recycled from the Xen vTPM device driver documentation. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: lin

[PATCH v6 08/11] tpm: Driver for supporting multiple emulated TPMs

2016-03-09 Thread Stefan Berger
/tpmX is the usual TPM device created by the core TPM driver. Applications or kernel subsystems can send TPM commands to it and the corresponding server-side file descriptor receives these commands and delivers them to an emulated TPM. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com&

[PATCH v5 09/11] tpm: Initialize TPM and get durations and timeouts

2016-03-07 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: linux-ker...@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-...@vger.kernel.org --- driver

[PATCH v5 10/11] tpm: Add documentation for the tpm_vtpm device driver

2016-03-07 Thread Stefan Berger
Add documentation for the tpm_vtpm device driver that implements support for providing TPM functionality to Linux containers. Parts of this documentation were recycled from the Xen vTPM device driver documentation. Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> CC: lin