Thread (45 messages) 45 messages, 5 authors, 2021-08-24

Re: [PATCH v2 02/12] mm: Introduce a function to check for virtualization protection features

From: "Kuppuswamy, Sathyanarayanan" <sathyanarayanan.kuppuswamy@linux.intel.com>
Date: 2021-08-13 17:19:54
Also in: amd-gfx, dri-devel, kexec, kvm, linux-efi, linux-fsdevel, linux-iommu, linux-s390, lkml, platform-driver-x86


On 8/13/21 9:59 AM, 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())).

Reviewed-by: Joerg Roedel<redacted>
Co-developed-by: Andi Kleen<redacted>
Signed-off-by: Andi Kleen<redacted>
Co-developed-by: Kuppuswamy Sathyanarayanan<sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan<sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Tom Lendacky<thomas.lendacky@amd.com>
---
  arch/Kconfig                    |  3 +++
  include/linux/protected_guest.h | 35 +++++++++++++++++++++++++++++++++
  2 files changed, 38 insertions(+)
  create mode 100644 include/linux/protected_guest.h
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>

-- 
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help