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

From: Kuppuswamy, Sathyanarayanan
Date: Thu Jun 03 2021 - 14:55:01 EST




On 6/3/21 11:41 AM, Borislav Petkov wrote:
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.

Ok. We can go with technologies for now. In future, if protected_guest_has() is extended
for other technologies like MKTME, then we can generalize it base on vendor.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer