]> www.infradead.org Git - users/hch/misc.git/commit
KVM: SVM: Ensure PSP module is initialized if KVM module is built-in
authorSean Christopherson <seanjc@google.com>
Mon, 10 Feb 2025 22:54:02 +0000 (22:54 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Feb 2025 23:39:19 +0000 (18:39 -0500)
commit44e70718df4fc2fadf1665eb9374df71aeda1f03
tree5fbf93fdc419fb54b09c686ae9996618afe02294
parent435b344a7042e91fb4719d589f18310e8919e39f
KVM: SVM: Ensure PSP module is initialized if KVM module is built-in

The kernel's initcall infrastructure lacks the ability to express
dependencies between initcalls, whereas the modules infrastructure
automatically handles dependencies via symbol loading.  Ensure the
PSP SEV driver is initialized before proceeding in sev_hardware_setup()
if KVM is built-in as the dependency isn't handled by the initcall
infrastructure.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Message-ID: <f78ddb64087df27e7bcb1ae0ab53f55aa0804fab.1739226950.git.ashish.kalra@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c