x86/boot: Move early SME init code into startup/
authorArd Biesheuvel <ardb@kernel.org>
Thu, 10 Apr 2025 13:41:23 +0000 (15:41 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 12 Apr 2025 09:13:05 +0000 (11:13 +0200)
commit7ae089ee75f3c77b94ff23204b41ea06da9f0193
tree469223aac47f82dc6404f8a10b6223ce08d72b16
parentdafb26f4271b9cc9cad07d9abf3c71c492e14f4c
x86/boot: Move early SME init code into startup/

Move the SME initialization code, which runs from the 1:1 mapping of
memory as it operates on the kernel virtual mapping, into the new
sub-directory arch/x86/boot/startup/ where all startup code will reside
that needs to tolerate executing from the 1:1 mapping.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Dionna Amalie Glaze <dionnaglaze@google.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Kevin Loughlin <kevinloughlin@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: linux-efi@vger.kernel.org
Link: https://lore.kernel.org/r/20250410134117.3713574-18-ardb+git@google.com
arch/x86/boot/startup/Makefile
arch/x86/boot/startup/sme.c [new file with mode: 0644]
arch/x86/mm/Makefile
arch/x86/mm/mem_encrypt_identity.c [deleted file]