Re: [PATCH 3/3] x86/sev: add a SVSM vTPM platform device
From: Jason Gunthorpe
Date: Wed Dec 11 2024 - 10:54:08 EST
On Wed, Dec 11, 2024 at 04:38:29PM +0100, Stefano Garzarella wrote:
> Except for the call to pops->sendrcv(buffer) the rest depends on how
> the TCG TPM reference implementation [1] expects the request/response
> to be formatted (we refer to this protocol with MSSIM).
Make a small inline helper to do the reformatting? Much better than a
layered driver.
> That is why I was saying to create a header with helpers that create
> the request/parse the response as TCG TPM expects.
Yes helpers sound better
Jason