]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Provide PIC aliases for SEV related data objects
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:15 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 15:59:43 +0000 (17:59 +0200)
commit9723dd0c705eb626bac2cd06b83a2c8514ed697a
tree03068c3ac7e4ecd87d88e56bedd22664ec2ba513
parentf27906b287403af53be26341cf86d73798f15fe8
x86/sev: Provide PIC aliases for SEV related data objects

Provide PIC aliases for data objects that are shared between the SEV startup
code and the SEV code that executes later. This is needed so that the confined
startup code is permitted to access them.

This requires some of these variables to be moved into a source file that is
not part of the startup code, as the PIC alias is already implied, and
exporting variables in the opposite direction is not supported.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250828102202.1849035-36-ardb+git@google.com
arch/x86/boot/compressed/sev.c
arch/x86/boot/startup/sev-shared.c
arch/x86/boot/startup/sev-startup.c
arch/x86/coco/sev/core.c