Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/sev: Export startup routines for later use

Create aliases that expose routines that are part of the startup code to
other code in the core kernel, so that they can be called later as well.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250828102202.1849035-38-ardb+git@google.com

authored by

Ard Biesheuvel and committed by
Borislav Petkov (AMD)
05ce314b d4077e6a

+16
+14
arch/x86/boot/startup/exports.h
··· 1 + 2 + /* 3 + * The symbols below are functions that are implemented by the startup code, 4 + * but called at runtime by the SEV code residing in the core kernel. 5 + */ 6 + PROVIDE(early_set_pages_state = __pi_early_set_pages_state); 7 + PROVIDE(early_snp_set_memory_private = __pi_early_snp_set_memory_private); 8 + PROVIDE(early_snp_set_memory_shared = __pi_early_snp_set_memory_shared); 9 + PROVIDE(get_hv_features = __pi_get_hv_features); 10 + PROVIDE(sev_es_terminate = __pi_sev_es_terminate); 11 + PROVIDE(snp_cpuid = __pi_snp_cpuid); 12 + PROVIDE(snp_cpuid_get_table = __pi_snp_cpuid_get_table); 13 + PROVIDE(svsm_issue_call = __pi_svsm_issue_call); 14 + PROVIDE(svsm_process_result_codes = __pi_svsm_process_result_codes);
+2
arch/x86/kernel/vmlinux.lds.S
··· 535 535 xen_elfnote_phys32_entry_value = 536 536 ABSOLUTE(xen_elfnote_phys32_entry) + ABSOLUTE(pvh_start_xen - LOAD_OFFSET); 537 537 #endif 538 + 539 + #include "../boot/startup/exports.h"