x86/sev: Rename mem_encrypt.c to mem_encrypt_amd.c
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Mon, 6 Dec 2021 13:55:04 +0000 (16:55 +0300)
committerBorislav Petkov <bp@suse.de>
Wed, 8 Dec 2021 15:49:47 +0000 (16:49 +0100)
commitdbca5e1a04f8b30aea4e2c91e5045ee6e7c3ef43
tree72d1ac6b7f17edb14234bfc3a4fcd8b7364e15f6
parent8260b9820f7050461b8969305bbd8cb5654f0c74
x86/sev: Rename mem_encrypt.c to mem_encrypt_amd.c

Both Intel TDX and AMD SEV implement memory encryption features. But the
bulk of the code in mem_encrypt.c is AMD-specific. Rename the file to
mem_encrypt_amd.c. A subsequent patch will extract the parts that can be
shared by both TDX and AMD SEV/SME into a generic file.

No functional changes.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20211206135505.75045-3-kirill.shutemov@linux.intel.com
arch/x86/mm/Makefile
arch/x86/mm/mem_encrypt.c [deleted file]
arch/x86/mm/mem_encrypt_amd.c [new file with mode: 0644]