hardkernel / linux

Linux kernel source tree
Other
427 stars 406 forks source link

Kernel 4.14.81-151 wont compile with KVM enables #365

Closed home42do closed 5 years ago

home42do commented 5 years ago

Hi folks, the spectre/meltdown patches seem to break KVM support. Kernel 4.14.81-151.tar.gz wont compile. Build 4.14.69-148.tar.gz works well.

CHK include/generated/compile.h AS arch/arm/mm/proc-v7.o arch/arm/mm/proc-v7.S: Assembler messages: arch/arm/mm/proc-v7.S:622: Error: symbol `cpu_ca15_switch_mm' is already defined scripts/Makefile.build:429: recipe for target 'arch/arm/mm/proc-v7.o' failed make[1]: [arch/arm/mm/proc-v7.o] Error 1 Makefile:1039: recipe for target 'arch/arm/mm' failed make: [arch/arm/mm] Error 2 make: Waiting for unfinished jobs.... make: wait: No child processes. Stop.

Dierk

config.txt log.txt

mdrjr commented 5 years ago

Does 4.14.83 builds ?

home42do commented 5 years ago

Hi Mauro, also the actual kernel from https://github.com/hardkernel wont compile (same errors). Appling patches 82 + 83 to the actual cloned kernel succeed, but the kernel also wont compile.

Kernels from original Linux repository compile but dont come up with kvm, because the "cpu ist in wrong mode" when booting (no HYP mode). Code for adressing secure mode in the exynos cpu seems to be missing.

Dierk

mdrjr commented 5 years ago

Please try this patch and let me know if it works

http://paste.ubuntu.com/p/bB8CfKbq55/

home42do commented 5 years ago

Hi Mauro, the patch workeon both kernels (4.14.81 and 4.14.83) and the kernels now compile flawless. When running these kernels everrything including KVM works fine. Should be commited to source. Dierk

yrzr commented 5 years ago

@mdrjr thanks, the patch works for me in #369