]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Share implementation of MSR-based page state change
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:10 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 15:58:19 +0000 (17:58 +0200)
commitd5949ea50c5642ab7e3c4dd6020e23725c079b25
tree2551586a88c2886377aa6c91ef2e4d7ed6274d21
parenta5f03880f06a6da6ea5f1d966fffffcb3fc65462
x86/sev: Share implementation of MSR-based page state change

Both the decompressor and the SEV startup code implement the exact same
sequence for invoking the MSR based communication protocol to effectuate
a page state change.

Before tweaking the internal APIs used in both versions, merge them and
share them so those tweaks are only needed in a single place.

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