Re: Undefined reference to `l1tf_vmx_mitigation' without CONFIG_KVM_INTEL

From: Dmitrii Tcvetkov
Date: Wed Aug 15 2018 - 05:09:18 EST


On Wed, 15 Aug 2018 11:42:00 +0300
Dmitrii Tcvetkov <demfloro@xxxxxxxxxxx> wrote:

> By build testing 4.18.1-rc2 from
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
> linux-4.18.y with my custom kernel config I got build error:
> CHK include/generated/autoksyms.h
> GEN .version
> CHK include/generated/compile.h
> AR built-in.a
> LD vmlinux.o
> MODPOST vmlinux.o
> ld: arch/x86/kvm/x86.o: in function `kvm_get_arch_capabilities':
> x86.c:(.text+0x46f2): undefined reference to `l1tf_vmx_mitigation'
> make[1]: *** [Makefile:1010: vmlinux] Error 1
> make: *** [Makefile:979: autoksyms_recursive] Error 2
>
> Build is successful with
> CONFIG_KVM=y
> CONFIG_KVM_INTEL=y
> CONFIG_KVM_AMD=y
> but fails if only
> CONFIG_KVM=y
> CONFIG_KVM_AMD=y
> are selected.
>
> The issue also reproduces on current mainline master (31130a16d459de)
> with the same error.

Sorry for the noise, only now saw the patch for the issue:
http://lkml.iu.edu/hypermail/linux/kernel/1808.1/04513.html