]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/sev: Move the internal header
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 4 Dec 2025 12:48:06 +0000 (13:48 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 Dec 2025 12:05:40 +0000 (13:05 +0100)
Move the internal header out of the usual include/asm/ include path
because having an "internal" header there doesn't really make it
internal - quite the opposite - that's the normal arch include path.

So move where it belongs and make it really internal.

No functional changes.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20251204145716.GDaTGhTEHNOtSdTkEe@fat_crate.local
arch/x86/boot/startup/sev-startup.c
arch/x86/coco/sev/core.c
arch/x86/coco/sev/internal.h [moved from arch/x86/include/asm/sev-internal.h with 100% similarity]
arch/x86/coco/sev/noinstr.c
arch/x86/coco/sev/vc-handle.c

index 09725428d3e657e6dba5ae6f8aae1b8add466208..789e99d38d17ba68c20069f6f9cbd2e875db74ab 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/cpu_entry_area.h>
 #include <asm/stacktrace.h>
 #include <asm/sev.h>
-#include <asm/sev-internal.h>
 #include <asm/insn-eval.h>
 #include <asm/fpu/xcr.h>
 #include <asm/processor.h>
@@ -41,6 +40,8 @@
 #include <asm/cpuid/api.h>
 #include <asm/cmdline.h>
 
+#include "../../coco/sev/internal.h"
+
 /* Include code shared with pre-decompression boot stage */
 #include "sev-shared.c"
 
index 9ae3b11754e655b996f5b179b9e5aad92e0e21ee..4e618e596267d588c0b4611c5cc6da8444315e58 100644 (file)
@@ -31,7 +31,6 @@
 #include <asm/cpu_entry_area.h>
 #include <asm/stacktrace.h>
 #include <asm/sev.h>
-#include <asm/sev-internal.h>
 #include <asm/insn-eval.h>
 #include <asm/fpu/xcr.h>
 #include <asm/processor.h>
@@ -46,6 +45,8 @@
 #include <asm/cmdline.h>
 #include <asm/msr.h>
 
+#include "internal.h"
+
 /* Bitmap of SEV features supported by the hypervisor */
 u64 sev_hv_features __ro_after_init;
 SYM_PIC_ALIAS(sev_hv_features);
index b527eafb631235d7000e68f7ce0821b15ad767a9..9d94aca4a698f6dc1d535107abb67ec43a7d263b 100644 (file)
@@ -16,7 +16,8 @@
 #include <asm/msr.h>
 #include <asm/ptrace.h>
 #include <asm/sev.h>
-#include <asm/sev-internal.h>
+
+#include "internal.h"
 
 static __always_inline bool on_vc_stack(struct pt_regs *regs)
 {
index f08c7505ed82a666334256866d3b753cc4b56b20..43f264afd590aef782c568398ac8cd67f0b84d0b 100644 (file)
@@ -23,7 +23,6 @@
 #include <asm/init.h>
 #include <asm/stacktrace.h>
 #include <asm/sev.h>
-#include <asm/sev-internal.h>
 #include <asm/insn-eval.h>
 #include <asm/fpu/xcr.h>
 #include <asm/processor.h>
@@ -35,6 +34,8 @@
 #include <asm/apic.h>
 #include <asm/cpuid/api.h>
 
+#include "internal.h"
+
 static enum es_result vc_slow_virt_to_phys(struct ghcb *ghcb, struct es_em_ctxt *ctxt,
                                           unsigned long vaddr, phys_addr_t *paddr)
 {