On 16/04/20 15:57, Tom Lendacky wrote: > On 4/13/20 2:50 AM, Paolo Bonzini wrote: >> 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. > > The Kconfig support will set CONFIG_KVM_AMD_SEV to "n" in this > situation, so it might be worth seeing if sev.o could be removed from > the build at that point. I'll try and look at that when I get a chance, > but I'm currently buried with a ton of other work. It could be made to work, but you would have to add stubs to sev.h. Paolo