Skip to content

Share common features between AMD SEV / TDX guest

Kirill A. Shutemov lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/sev branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesApplied
  2. v23 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Adjust wording in 1/3 based on Tom's feedback.
- Tested-by from Tom.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3x86/sev: Use CC_ATTR attribute to generalize string I/O unrollarch/x86/include/asm/io.h arch/x86/kernel/cc_platform.c arch/x86/mm/mem_encrypt.c +1 more+18 -270 replies
2/3x86/sev: Rename mem_encrypt.c to mem_encrypt_amd.carch/x86/mm/Makefile arch/x86/mm/mem_encrypt_amd.c+4 -40 replies
3/3x86: Move common memory encryption code to mem_encrypt.carch/x86/Kconfig arch/x86/mm/Makefile arch/x86/mm/mem_encrypt.c +1 more+96 -720 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchTony LuckTom LendackyAndi Kleen
1/3R-b T-b
2/3R-b T-b
3/3R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCHv3 0/3] Share common features between AMD SEV / TDX guest

Intel's Trust Domain Extensions (TDX) protect guest VMs from malicious hosts and some physical attacks. TDX has a lot of similarities to AMD SEV. Features like encryption/decryption and string I/O unroll support can be shared between these two technologies.

This patch set adds infrastructure changes required to share the code between AMD SEV and TDX.

v3:
- Adjust wording in 1/3 based on Tom's feedback.
- Tested-by from Tom.
v2:
- Squash first two patches
- Rename print_amd_mem_encrypt_feature_info() to print_mem_encrypt_feature_info(). It will report TDX feature too.

Kirill A. Shutemov (1):
x86: Move common memory encryption code to mem_encrypt.c

Kuppuswamy Sathyanarayanan (2):
x86/sev: Use CC_ATTR attribute to generalize string I/O unroll x86/sev: Rename mem_encrypt.c to mem_encrypt_amd.c

 arch/x86/Kconfig              |  10 +-
 arch/x86/include/asm/io.h     |  20 +-
 arch/x86/kernel/cc_platform.c |   4 +
 arch/x86/mm/Makefile          |   7 +-
 arch/x86/mm/mem_encrypt.c     | 441 +---------------------------------
 arch/x86/mm/mem_encrypt_amd.c | 438 +++++++++++++++++++++++++++++++++
 include/linux/cc_platform.h   |  11 +
 7 files changed, 473 insertions(+), 458 deletions(-)
 create mode 100644 arch/x86/mm/mem_encrypt_amd.c
Signature · 1 line
2.32.0