KVM-87 compile failed
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.
Simon
Quoted 9 lines
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
I got the same error on Ubuntu 9.04 (2.6.28-11-generic). Debian 5 (2.6.26-2-amd64) works.
Quoted 20 lines · On 06/26/2009 08:40 AM, [email protected] 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
Quoted 5 lines
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.
Signature · 1 line
error compiling committee.c: too many arguments to function