Re: [PATCH] x86/mm: Check cc_vendor when printing memory encryption info

From: kirill . shutemov
Date: Fri Nov 10 2023 - 13:17:48 EST


On Fri, Nov 10, 2023 at 01:27:08PM +0100, Jeremi Piotrowski wrote:
> > Maybe just remove incorrect info and that's it?
> >
>
> I disagree, other users and I find the print very useful to see which coco
> platform the kernel is running on and which confidential computing features
> the kernel detected. I'm willing to fix the code to report correct info.

For TDX, we already have "tdx: Guest detected" in dmesg. sme_early_init()
can do something similar.

--
Kiryl Shutsemau / Kirill A. Shutemov