[GIT PULL] x86/sev for v5.17
From: Borislav Petkov
Date: Mon Jan 10 2022 - 05:30:44 EST
Hi Linus,
please pull the accumulated pile of x86/sev generalizations and cleanups,
for 5.17.
Thx.
---
The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf:
Linux 5.16-rc1 (2021-11-14 13:56:52 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_sev_for_v5.17_rc1
for you to fetch changes up to 20f07a044a76aebaaa0603038857229b5c460d69:
x86/sev: Move common memory encryption code to mem_encrypt.c (2021-12-08 16:49:53 +0100)
----------------------------------------------------------------
- Share the SEV string unrolling logic with TDX as TDX guests need it too
- Cleanups and generalzation of code shared by SEV and TDX
----------------------------------------------------------------
Borislav Petkov (3):
x86/sev: Get rid of excessive use of defines
x86/head64: Carve out the guest encryption postprocessing into a helper
x86/sev: Remove do_early_exception() forward declarations
Brijesh Singh (1):
x86/sev: Shorten GHCB terminate macro names
Kirill A. Shutemov (1):
x86/sev: 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/boot/compressed/sev.c | 6 +-
arch/x86/include/asm/io.h | 20 +-
arch/x86/include/asm/sev-common.h | 55 ++---
arch/x86/kernel/cc_platform.c | 8 +
arch/x86/kernel/head64.c | 60 +++---
arch/x86/kernel/sev-shared.c | 2 +-
arch/x86/kernel/sev.c | 11 +-
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 +
12 files changed, 545 insertions(+), 524 deletions(-)
create mode 100644 arch/x86/mm/mem_encrypt_amd.c
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg