Re: [PATCH] x86/sev: Check whether SEV or SME is supported first

From: Borislav Petkov
Date: Tue Jun 01 2021 - 10:40:03 EST


On Mon, May 31, 2021 at 10:56:50PM +0800, Pu Wen wrote:
> Thanks for your suggestion, I'll try to set up early #GP handler to fix
> the problem.

Why? AFAICT, you only need to return early in sme_enable() if CPUID is
not "AuthenticAMD". Just do that please.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette