About the compile error
123toorc opened this issue · comments
Hi great team!
I met some problems when I try to compile the kernel, I try to fix it, but it could be wrong. Just make sure the solution is correct.
#1:
error: arch/x86/kvm/dsm-util.h:90:2: error: implicit declaration of function ‘jhash‘
I fixed it by adding #include <linux/jhash.h> to the include/linux/kvm_host.h
#2:
error in linking time, because the instruction requires "Switch the MACRO definition from USE_KRDMA_NETWORK to USE_KTCP_NETWORK in arch/x86/include/asm/kvm_host.h", I assume the krdma.o this obj file is useless for TCP network, no need link in (it has problems with "undefined reference")
After I remove this, the kernel compile is passed
Is this correct?
Thanks,
Tong