]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp: Add external API interface for PSP module initialization
authorSean Christopherson <seanjc@google.com>
Mon, 10 Feb 2025 22:53:47 +0000 (22:53 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 11 Feb 2025 21:29:08 +0000 (13:29 -0800)
commitf73542501f8c6c1fd866b59a9e154df222380d63
treef1ef172f4d1566c5905842468b530567abc46db6
parent8a01902a0168240a1d88ef82a97e2edd9d140972
crypto: ccp: Add external API interface for PSP module initialization

KVM is dependent on the PSP SEV driver and PSP SEV driver needs to be
loaded before KVM module. In case of module loading any dependent
modules are automatically loaded but in case of built-in modules there
is no inherent mechanism available to specify dependencies between
modules and ensure that any dependent modules are loaded implicitly.

Add a new external API interface for PSP module initialization which
allows PSP SEV driver to be loaded explicitly if KVM is built-in.

Co-developed-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/15279ca0cad56a07cf12834ec544310f85ff5edc.1739226950.git.ashish.kalra@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
drivers/crypto/ccp/sp-dev.c
include/linux/psp-sev.h