]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: fix compilation with modular PSP and non-modular KVM
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Apr 2020 07:20:06 +0000 (03:20 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Apr 2020 08:21:15 +0000 (04:21 -0400)
commita26461e0b61d3af49ed18eb44ccec8b97d3961e9
tree8428760145532f11e9b400bfc70e8db02c717bf9
parent3787440fcf664e7c3bb870ade8e74d73d3643f71
KVM: SVM: fix compilation with modular PSP and non-modular KVM

Use svm_sev_enabled() in order to cull all calls to PSP code.  Otherwise,
compilation fails with undefined symbols if the PSP device driver is compiled
as a module and KVM is not.

Reported-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c