Skip to content

Commit dbca5e1

Browse files
Kuppuswamy Sathyanarayanansuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Tony Luck <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Tested-by: Tom Lendacky <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8260b98 commit dbca5e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/x86/mm/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# SPDX-License-Identifier: GPL-2.0
22
# Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c
33
KCOV_INSTRUMENT_tlb.o := n
4-
KCOV_INSTRUMENT_mem_encrypt.o := n
4+
KCOV_INSTRUMENT_mem_encrypt_amd.o := n
55
KCOV_INSTRUMENT_mem_encrypt_identity.o := n
66

7-
KASAN_SANITIZE_mem_encrypt.o := n
7+
KASAN_SANITIZE_mem_encrypt_amd.o := n
88
KASAN_SANITIZE_mem_encrypt_identity.o := n
99

1010
# Disable KCSAN entirely, because otherwise we get warnings that some functions
1111
# reference __initdata sections.
1212
KCSAN_SANITIZE := n
1313

1414
ifdef CONFIG_FUNCTION_TRACER
15-
CFLAGS_REMOVE_mem_encrypt.o = -pg
15+
CFLAGS_REMOVE_mem_encrypt_amd.o = -pg
1616
CFLAGS_REMOVE_mem_encrypt_identity.o = -pg
1717
endif
1818

@@ -52,6 +52,6 @@ obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
5252
obj-$(CONFIG_RANDOMIZE_MEMORY) += kaslr.o
5353
obj-$(CONFIG_PAGE_TABLE_ISOLATION) += pti.o
5454

55-
obj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt.o
55+
obj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt_amd.o
5656
obj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt_identity.o
5757
obj-$(CONFIG_AMD_MEM_ENCRYPT) += mem_encrypt_boot.o
File renamed without changes.

0 commit comments

Comments
 (0)