On 06/26/2009 08:40 AM, gao@xxxxxxxxxxxxxxx wrote:
Hi, Compiling KVM-87 failed with following error: make -C /lib/modules/2.6.29-gentoo-r5/build M=`pwd` \ LINUXINCLUDE="-I`pwd`/include -Iinclude \ -Iarch/x86/include -I`pwd`/include-compat \ -include include/linux/autoconf.h \ -include `pwd`/x86/external-module-compat.h " \ "$@" CC [M] /tmp/kvm-87/kvm/kernel/x86/vmx.o /tmp/kvm-87/kvm/kernel/x86/vmx.c: In function ‘ept_rsvd_mask’: /tmp/kvm-87/kvm/kernel/x86/vmx.c:3272: error: ‘struct cpuinfo_x86’ has no member named ‘x86_phys_bits’ make[4]: *** [/tmp/kvm-87/kvm/kernel/x86/vmx.o] Error 1 make[3]: *** [/tmp/kvm-87/kvm/kernel/x86] Error 2 make[2]: *** [_module_/tmp/kvm-87/kvm/kernel] Error 2 make[1]: *** [all] Error 2 make: *** [kvm-kmod] Error 2 GCC-4.3.2-r3, kernel 2.6.29-gentoo-r5. Compiling worked fine with KVM-86.
kvm-87 is fairly compile-broken on 32-bit hosts. I need to improve my compile testing infrastructure, or make the kvm-xx release candidate process public.
You can work around it by replacing 'boot_cpu_data.x86_phys_bits' in vmx.c by the constant 40.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html