]> git.ipfire.org Git - thirdparty/linux.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)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Feb 2025 23:39:19 +0000 (18:39 -0500)
commit435b344a7042e91fb4719d589f18310e8919e39f
tree2237aa4dae8e8577897cbb6a6bd631d4652f3bd0
parent3bb7dcebd022fea8a696185592d21bceed7b426c
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.

Signed-off-by: Sean Christopherson <seanjc@google.com>
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>
Message-ID: <15279ca0cad56a07cf12834ec544310f85ff5edc.1739226950.git.ashish.kalra@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
drivers/crypto/ccp/sp-dev.c
include/linux/psp-sev.h