Re: [PATCH] x86/mm: Print the encryption features correctly when a paravisor is present

From: Dave Hansen
Date: Fri Oct 20 2023 - 14:39:44 EST


On 10/19/23 23:01, Dexuan Cui wrote:
> This patch only modifies x86 related files. I think it's unlikely to see
> a third hardware Coco implementation for x86 in the foreseeable feature (?)

OK, then what good is this patch in the first place? If you are right,
then this would give equivalent information:

cat /proc/cpuinfo | grep -q Intel && echo 'TDX'
cat /proc/cpuinfo | grep -q AMD && echo 'SEV'

No kernel patching needed, right?