Re: [PATCH v6 4/4] x86/sev: register tpm-svsm platform device

Tom Lendacky
2025-04-09T19:16:48Z

On 4/9/25 13:45, Borislav Petkov wrote:
> On Wed, Apr 09, 2025 at 11:07:49AM -0500, Tom Lendacky wrote:
>> So the vTPM driver wouldn't change, just snp_init_platform_device():
>>
>> if (snp_vmpl && platform_device_register(&tpm_svsm_device))
>
> So this basically says that the SVSM is always sporting a vTPM emulation. But
> you can build the cocont-svsm thing without it AFAICT.
>
> So I'm guessing Stefano's suggestion here might make more sense:
>
> https://lore.kernel.org/r/o2u7p3wb64lcc4sziunr274hyubkgmspzdjcvihbpzkw6mkvpo@sjq3vi4y2qfl
>
> considering it all...

That way works for me, too.

Thanks,
Tom

>