Re: [RFC v2-fix-v2 1/1] x86: Introduce generic protected guest abstraction

From: Borislav Petkov
Date: Thu Jun 03 2021 - 14:41:46 EST


Sathya,

please trim your mails when you reply, like I've done in this reply.

Thx.

On Thu, Jun 03, 2021 at 11:33:53AM -0700, Kuppuswamy, Sathyanarayanan wrote:
> I assume this file will get compiled for both SEV and SME cases.

Yap.

> Since you are checking for AMD vendor ID, why not use amd_protected_guest_has()?

Because, as Sean already told you, we should either stick to the
technologies: TDX or SEV or to the vendors: Intel or AMD - but not
either or.

--
Regards/Gruss,
Boris.

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