Skip to content

Commit e759959

Browse files
codomaniasuryasaimadhu
authored andcommitted
x86/sev-es: Rename sev-es.{ch} to sev.{ch}
SEV-SNP builds upon the SEV-ES functionality while adding new hardware protection. Version 2 of the GHCB specification adds new NAE events that are SEV-SNP specific. Rename the sev-es.{ch} to sev.{ch} so that all SEV* functionality can be consolidated in one place. Signed-off-by: Brijesh Singh <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Joerg Roedel <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 6efb943 commit e759959

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

arch/x86/boot/compressed/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no)
4848
KBUILD_CFLAGS += -include $(srctree)/include/linux/hidden.h
4949
KBUILD_CFLAGS += $(CLANG_FLAGS)
5050

51-
# sev-es.c indirectly inludes inat-table.h which is generated during
51+
# sev.c indirectly inludes inat-table.h which is generated during
5252
# compilation and stored in $(objtree). Add the directory to the includes so
5353
# that the compiler finds it even with out-of-tree builds (make O=/some/path).
54-
CFLAGS_sev-es.o += -I$(objtree)/arch/x86/lib/
54+
CFLAGS_sev.o += -I$(objtree)/arch/x86/lib/
5555

5656
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
5757
GCOV_PROFILE := n
@@ -93,7 +93,7 @@ ifdef CONFIG_X86_64
9393
vmlinux-objs-y += $(obj)/idt_64.o $(obj)/idt_handlers_64.o
9494
vmlinux-objs-y += $(obj)/mem_encrypt.o
9595
vmlinux-objs-y += $(obj)/pgtable_64.o
96-
vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/sev-es.o
96+
vmlinux-objs-$(CONFIG_AMD_MEM_ENCRYPT) += $(obj)/sev.o
9797
endif
9898

9999
vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o

arch/x86/boot/compressed/sev-es.c renamed to arch/x86/boot/compressed/sev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "misc.h"
1414

1515
#include <asm/pgtable_types.h>
16-
#include <asm/sev-es.h>
16+
#include <asm/sev.h>
1717
#include <asm/trapnr.h>
1818
#include <asm/trap_pf.h>
1919
#include <asm/msr-index.h>
@@ -117,7 +117,7 @@ static enum es_result vc_read_mem(struct es_em_ctxt *ctxt,
117117
#include "../../lib/insn.c"
118118

119119
/* Include code for early handlers */
120-
#include "../../kernel/sev-es-shared.c"
120+
#include "../../kernel/sev-shared.c"
121121

122122
static bool early_setup_sev_es(void)
123123
{
File renamed without changes.

arch/x86/kernel/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ CFLAGS_REMOVE_kvmclock.o = -pg
2020
CFLAGS_REMOVE_ftrace.o = -pg
2121
CFLAGS_REMOVE_early_printk.o = -pg
2222
CFLAGS_REMOVE_head64.o = -pg
23-
CFLAGS_REMOVE_sev-es.o = -pg
23+
CFLAGS_REMOVE_sev.o = -pg
2424
endif
2525

2626
KASAN_SANITIZE_head$(BITS).o := n
2727
KASAN_SANITIZE_dumpstack.o := n
2828
KASAN_SANITIZE_dumpstack_$(BITS).o := n
2929
KASAN_SANITIZE_stacktrace.o := n
3030
KASAN_SANITIZE_paravirt.o := n
31-
KASAN_SANITIZE_sev-es.o := n
31+
KASAN_SANITIZE_sev.o := n
3232

3333
# With some compiler versions the generated code results in boot hangs, caused
3434
# by several compilation units. To be safe, disable all instrumentation.
@@ -148,7 +148,7 @@ obj-$(CONFIG_UNWINDER_ORC) += unwind_orc.o
148148
obj-$(CONFIG_UNWINDER_FRAME_POINTER) += unwind_frame.o
149149
obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o
150150

151-
obj-$(CONFIG_AMD_MEM_ENCRYPT) += sev-es.o
151+
obj-$(CONFIG_AMD_MEM_ENCRYPT) += sev.o
152152
###
153153
# 64 bit specific files
154154
ifeq ($(CONFIG_X86_64),y)

arch/x86/kernel/head64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <asm/realmode.h>
4040
#include <asm/extable.h>
4141
#include <asm/trapnr.h>
42-
#include <asm/sev-es.h>
42+
#include <asm/sev.h>
4343

4444
/*
4545
* Manage page tables very early on.

arch/x86/kernel/nmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <asm/reboot.h>
3434
#include <asm/cache.h>
3535
#include <asm/nospec-branch.h>
36-
#include <asm/sev-es.h>
36+
#include <asm/sev.h>
3737

3838
#define CREATE_TRACE_POINTS
3939
#include <trace/events/nmi.h>
File renamed without changes.

arch/x86/kernel/sev-es.c renamed to arch/x86/kernel/sev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <asm/cpu_entry_area.h>
2424
#include <asm/stacktrace.h>
25-
#include <asm/sev-es.h>
25+
#include <asm/sev.h>
2626
#include <asm/insn-eval.h>
2727
#include <asm/fpu/internal.h>
2828
#include <asm/processor.h>
@@ -459,7 +459,7 @@ static enum es_result vc_slow_virt_to_phys(struct ghcb *ghcb, struct es_em_ctxt
459459
}
460460

461461
/* Include code shared with pre-decompression boot stage */
462-
#include "sev-es-shared.c"
462+
#include "sev-shared.c"
463463

464464
void noinstr __sev_es_nmi_complete(void)
465465
{

arch/x86/mm/extable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <xen/xen.h>
66

77
#include <asm/fpu/internal.h>
8-
#include <asm/sev-es.h>
8+
#include <asm/sev.h>
99
#include <asm/traps.h>
1010
#include <asm/kdebug.h>
1111

arch/x86/platform/efi/efi_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#include <asm/realmode.h>
4848
#include <asm/time.h>
4949
#include <asm/pgalloc.h>
50-
#include <asm/sev-es.h>
50+
#include <asm/sev.h>
5151

5252
/*
5353
* We allocate runtime services regions top-down, starting from -4G, i.e.

0 commit comments

Comments
 (0)