latest kvm-kmod + kvm git vs. 3.8.* distro kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jan,

I'm trying to use your kvm-kmod git repo to build KVM git master
against the latest two Fedora 18 kernels (3.7.9-205 and 3.8.1-201),
and I'm running into a bit of trouble:


$ ./configure --kerneldir=/lib/modules/3.7.9-205.fc18.x86_64/build
$ make sync
$ make

make -C /lib/modules/3.7.9-205.fc18.x86_64/build M=`pwd` \
        LINUXINCLUDE="-I`pwd`/include -Iinclude \
                 -Iinclude2 -I/lib/modules/3.7.9-205.fc18.x86_64/source/include -I/lib/modules/3.7.9-205.fc18.x86_64/source/include/uapi -I/lib/modules/3.7.9-205.fc18.x86_64/source/arch/x86/include \
                -Iinclude/generated/uapi -Iarch/x86/include/generated \
                -Iarch/x86/include/generated/uapi \
                -I`pwd`/include-compat -I`pwd`/x86 \
                -include  include/generated/autoconf.h \
                -include `pwd`/x86/external-module-compat.h" \
        "$@"
make[1]: Entering directory `/usr/src/kernels/3.7.9-205.fc18.x86_64'
  LD      /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/built-in.o
  CC [M]  /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.o
In file included from /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:51:0:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/include/linux/kvm_host.h: In function ‘__guest_enter’:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/include/linux/kvm_host.h:792:2: error: implicit declaration of function ‘vtime_account_system’ [-Werror=implicit-function-declaration]
In file included from /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/include/asm/virtext.h:54:0,
                 from /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:73:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/include/asm/vmx.h: At top level:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/include/asm/vmx.h:63:26: fatal error: uapi/asm/vmx.h: No such file or directory
cc1: some warnings being treated as errors
compilation terminated.
make[3]: *** [/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.o] Error 1
make[2]: *** [/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86] Error 2
make[1]: *** [_module_/home/somlo/KVM-OSX/SCRATCH/kvm-kmod] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.7.9-205.fc18.x86_64'
make: *** [all] Error 2


Looks like I'm getting hit by the kernel Makefile's "-Wall" flag. Even
worse, after I upgraded my Fedora machine's kernel to 3.8:


$ uname -a
... 3.8.1-201.fc18.x86_64 #1 SMP ...  x86_64 x86_64 x86_64 GNU/Linux


and modifying the max_kernel_version in kvm-kmod's configure script:


$ sed -i 's/max_kernel_version=7/max_kernel_version=8/' configure


Things get even more complicated:


$ ./configure
$ make sync
$ make

make -C /lib/modules/3.8.1-201.fc18.x86_64/build M=`pwd` \
        LINUXINCLUDE="-I`pwd`/include -Iinclude \
                 -Iinclude2 -I/lib/modules/3.8.1-201.fc18.x86_64/source/include -I/lib/modules/3.8.1-201.fc18.x86_64/source/include/uapi -I/lib/modules/3.8.1-201.fc18.x86_64/source/arch/x86/include \
                -Iinclude/generated/uapi -Iarch/x86/include/generated \
                -Iarch/x86/include/generated/uapi \
                -I`pwd`/include-compat -I`pwd`/x86 \
                -include  include/generated/autoconf.h \
                -include `pwd`/x86/external-module-compat.h" \
        "$@"
make[1]: Entering directory `/usr/src/kernels/3.8.1-201.fc18.x86_64'
  LD      /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/built-in.o
  CC [M]  /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.o
In file included from include/linux/types.h:5:0,
                 from /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/external-module-compat.h:9,
                 from <command-line>:0:
include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory
compilation terminated.
make[3]: *** [/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.o] Error 1
make[2]: *** [/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86] Error 2
make[1]: *** [_module_/home/somlo/KVM-OSX/SCRATCH/kvm-kmod] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.8.1-201.fc18.x86_64'
make: *** [all] Error 2



At this point, if I add e.g. "-I/usr/include \" to LINUXINCLUDE for "all:",
I get past that error, but get hit by the kernel Makefile's -Wall once again:



make[1]: Entering directory `/usr/src/kernels/3.8.1-201.fc18.x86_64'
  CC [M]  /home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.o
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c: In function ‘pf_interception’:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:1743:3: error: implicit declaration of function ‘kvm_async_pf_task_wait’ [-Werror=implicit-function-declaration]
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:1749:3: error: implicit declaration of function ‘kvm_async_pf_task_wake’ [-Werror=implicit-function-declaration]
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c: In function ‘svm_vcpu_run’:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:3974:3: error: implicit declaration of function ‘kvm_read_and_reset_pf_reason’ [-Werror=implicit-function-declaration]
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c: At top level:
/home/somlo/KVM-OSX/SCRATCH/kvm-kmod/x86/svm.c:2790:12: warning: ‘invalid_op_interception’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors


I'm wondering if there's something missing from the "sync" script (such
as a set of include files that would satisfy the above warnings, and the
"missing" asm/types.h in 3.8.*) ?

Thanks for any ideas,
--Gabriel
--
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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux