Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread Stefan Berger
On 12/14/22 07:43, James Bottomley wrote: On Wed, 2022-12-14 at 11:52 +, Daniel P. Berrangé wrote: It is a shame there isn't a standardized protocol for software TPM communication, as that'd avoid the need for multiple backends. Technically the mssim protocol is the standard, being part

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread Markus Armbruster
James Bottomley writes: > On Wed, 2022-12-14 at 11:31 +, Daniel P. Berrangé wrote: [...] >> These days, we have a policy of not tyring to map nested data onto >> the flat QemuOpts. This has been done in several areas and we've >> ended up with a mess of ever so slightly different impls each

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread James Bottomley
On Wed, 2022-12-14 at 11:31 +, Daniel P. Berrangé wrote: > On Mon, Dec 12, 2022 at 05:06:05PM -0500, James Bottomley wrote: > > On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: > > > Copy'ing Markus for QAPI design feedback. > > > > > > On Sat, Dec 10, 2022 at 12:10:18PM -0500, Jam

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread James Bottomley
On Wed, 2022-12-14 at 11:52 +, Daniel P. Berrangé wrote: > It is a shame there isn't a standardized protocol for software TPM > communication, as that'd avoid the need for multiple backends. Technically the mssim protocol is the standard, being part of the reference implementation, but practic

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread Daniel P . Berrangé
On Mon, Dec 12, 2022 at 01:58:29PM -0500, Stefan Berger wrote: > > > On 12/12/22 13:48, James Bottomley wrote: > > On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: > > > > > > > > > On 12/12/22 11:38, James Bottomley wrote: > > > > On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wr

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread Daniel P . Berrangé
On Mon, Dec 12, 2022 at 05:02:43PM -0500, Stefan Berger wrote: > > > On 12/12/22 16:36, James Bottomley wrote: > > On Mon, 2022-12-12 at 14:32 -0500, Stefan Berger wrote: > > > > > > > > > On 12/12/22 14:12, James Bottomley wrote: > > > > On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote:

Re: [PATCH] tpm: add backend for mssim

2022-12-14 Thread Daniel P . Berrangé
On Mon, Dec 12, 2022 at 05:06:05PM -0500, James Bottomley wrote: > On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: > > Copy'ing Markus for QAPI design feedback. > > > > On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: > [...] > > > +## > > > +# @TPMmssimOptions: > > >

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 17:27, James Bottomley wrote: . Swtpm currently isn't building for Leap: https://build.opensuse.org/package/show/security/swtpm Someone could have notified me...

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 17:02 -0500, Stefan Berger wrote: > > > On 12/12/22 16:36, James Bottomley wrote: > > On Mon, 2022-12-12 at 14:32 -0500, Stefan Berger wrote: [...] > > >   Either way, what is the latency that this introduces because I > > > would expect that this slows down IMA since the PC

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: > Copy'ing Markus for QAPI design feedback. > > On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: [...] > > +## > > +# @TPMmssimOptions: > > +# > > +# Information for the mssim emulator connection > > +# > > +# @host: host

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 16:36, James Bottomley wrote: On Mon, 2022-12-12 at 14:32 -0500, Stefan Berger wrote: On 12/12/22 14:12, James Bottomley wrote: On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote: On 12/12/22 13:48, James Bottomley wrote: On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger w

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 14:32 -0500, Stefan Berger wrote: > > > On 12/12/22 14:12, James Bottomley wrote: > > On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote: > > > On 12/12/22 13:48, James Bottomley wrote: > > > > On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: > > > > > On 12/12/22

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 14:32, Stefan Berger wrote: On 12/12/22 14:12, James Bottomley wrote: On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote: On 12/12/22 13:48, James Bottomley wrote: On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: On 12/12/22 11:38, James Bottomley wrote: [...] th

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 14:12, James Bottomley wrote: On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote: On 12/12/22 13:48, James Bottomley wrote: On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: On 12/12/22 11:38, James Bottomley wrote: [...] the kernel use of the TPM, but I'm trying to

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 13:58 -0500, Stefan Berger wrote: > On 12/12/22 13:48, James Bottomley wrote: > > On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: > > > On 12/12/22 11:38, James Bottomley wrote: [...] > > > > the kernel use of the TPM, but I'm trying to fix that.  The > > > > standard

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 13:48, James Bottomley wrote: On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: On 12/12/22 11:38, James Bottomley wrote: On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: Copy'ing Markus for QAPI design feedback. On Sat, Dec 10, 2022 at 12:10:18PM -0500, Jam

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 11:59 -0500, Stefan Berger wrote: > > > On 12/12/22 11:38, James Bottomley wrote: > > On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: > > > Copy'ing Markus for QAPI design feedback. > > > > > > On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: >

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 11:38, James Bottomley wrote: On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: Copy'ing Markus for QAPI design feedback. On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: The Microsoft Simulator (mssim) is the reference emulation platform for the TCG T

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 15:47 +, Daniel P. Berrangé wrote: > Copy'ing Markus for QAPI design feedback. > > On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: > > The Microsoft Simulator (mssim) is the reference emulation platform > > for the TCG TPM 2.0 specification. > > > > http

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 10:28, James Bottomley wrote: On Mon, 2022-12-12 at 10:20 -0500, Stefan Berger wrote: On 12/12/22 09:47, James Bottomley wrote: [...] I don't actually use virsh in my harness.  I'm mostly interested in the running the kernel TPM selftests against the reference model. But I antic

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Daniel P . Berrangé
Copy'ing Markus for QAPI design feedback. On Sat, Dec 10, 2022 at 12:10:18PM -0500, James Bottomley wrote: > The Microsoft Simulator (mssim) is the reference emulation platform > for the TCG TPM 2.0 specification. > > https://github.com/Microsoft/ms-tpm-20-ref.git > > It exports a fairly simple

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 10:20 -0500, Stefan Berger wrote: > On 12/12/22 09:47, James Bottomley wrote: [...] > > I don't actually use virsh in my harness.  I'm mostly interested in > > the running the kernel TPM selftests against the reference model.  > > But I anticipate it wouldn't currently work be

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 09:47, James Bottomley wrote: On Mon, 2022-12-12 at 09:44 -0500, Stefan Berger wrote: On 12/12/22 09:32, James Bottomley wrote: On Mon, 2022-12-12 at 09:27 -0500, Stefan Berger wrote: On 12/12/22 08:59, James Bottomley wrote: On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 09:44 -0500, Stefan Berger wrote: > > > On 12/12/22 09:32, James Bottomley wrote: > > On Mon, 2022-12-12 at 09:27 -0500, Stefan Berger wrote: > > > > > > > > > On 12/12/22 08:59, James Bottomley wrote: > > > > On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger wrote: > > > >

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 09:32, James Bottomley wrote: On Mon, 2022-12-12 at 09:27 -0500, Stefan Berger wrote: On 12/12/22 08:59, James Bottomley wrote: On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger wrote: On 12/10/22 12:10, James Bottomley wrote: The Microsoft Simulator (mssim) is the reference

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 09:27 -0500, Stefan Berger wrote: > > > On 12/12/22 08:59, James Bottomley wrote: > > On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger wrote: > > > > > > > > > On 12/10/22 12:10, James Bottomley wrote: > > > > The Microsoft Simulator (mssim) is the reference emulation > >

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/12/22 08:59, James Bottomley wrote: On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger wrote: On 12/10/22 12:10, James Bottomley wrote: The Microsoft Simulator (mssim) is the reference emulation platform for the TCG TPM 2.0 specification. https://github.com/Microsoft/ms-tpm-20-ref.git

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread James Bottomley
On Mon, 2022-12-12 at 08:43 -0500, Stefan Berger wrote: > > > On 12/10/22 12:10, James Bottomley wrote: > > The Microsoft Simulator (mssim) is the reference emulation platform > > for the TCG TPM 2.0 specification. > > > > https://github.com/Microsoft/ms-tpm-20-ref.git > > > > It exports a fair

Re: [PATCH] tpm: add backend for mssim

2022-12-12 Thread Stefan Berger
On 12/10/22 12:10, James Bottomley wrote: The Microsoft Simulator (mssim) is the reference emulation platform for the TCG TPM 2.0 specification. https://github.com/Microsoft/ms-tpm-20-ref.git It exports a fairly simple network socket baset protocol on two baset -> based. sockets, one for

[PATCH] tpm: add backend for mssim

2022-12-10 Thread James Bottomley
The Microsoft Simulator (mssim) is the reference emulation platform for the TCG TPM 2.0 specification. https://github.com/Microsoft/ms-tpm-20-ref.git It exports a fairly simple network socket baset protocol on two sockets, one for command (default 2321) and one for control (default 2322). This p