[PATCH 01/11] mm: Introduce a function to check for virtualization protection features

Joerg Roedel joro at 8bytes.org
Mon Aug 2 20:34:51 AEST 2021


On Tue, Jul 27, 2021 at 05:26:04PM -0500, Tom Lendacky wrote:
> In prep for other protected virtualization technologies, introduce a
> generic helper function, prot_guest_has(), that can be used to check
> for specific protection attributes, like memory encryption. This is
> intended to eliminate having to add multiple technology-specific checks
> to the code (e.g. if (sev_active() || tdx_active())).
> 
> Co-developed-by: Andi Kleen <ak at linux.intel.com>
> Signed-off-by: Andi Kleen <ak at linux.intel.com>
> Co-developed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy at linux.intel.com>
> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy at linux.intel.com>
> Signed-off-by: Tom Lendacky <thomas.lendacky at amd.com>

Reviewed-by: Joerg Roedel <jroedel at suse.de>


More information about the Linuxppc-dev mailing list