Re: Sudden need for bhyve TPM Emulation... willing to port swtpm?

From: Goran_Mekić <meka_at_tilda.center>
Date: Sun, 06 Aug 2023 16:47:27 UTC
On 8/2/23 02:28, Michael Dexter wrote:
> Hello all,
>
> Long-time bhyve-in-production user Jason Tubnor pointed out that a 
> recent Windows 11 update breaks the "lab mode" under which Windows 11 
> could be run without a TPM (Trusted Platform Module) chip via a 
> registry edit. Corvin has made significant progress with TPM 
> pass-through support but it only supports one VM associated with the 
> hardware TPM.
>
> This 3-clause BSD-license software TPM project has existed but I have 
> never heard it brought up in the bhyve context, possibly because of 
> the available workaround:
>
> https://github.com/stefanberger/swtpm
>
> Is anyone be willing to look into porting this to bhyve?
>
> All the best,
>
> Michael
>
Hello,

If anyone can take a look and merge these, it would be a start:

  * libtpms https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272972
  * swtpm https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272973

As I never read bhyve code before, I will start glancing it and trying 
to figure out stuff from Corvin's previous PR enabling pass-through for 
TPM. If anyone has any info to speed me up on this quest, please speak! 
Thank you!

Regards,
meka