All of lore.kernel.org
 help / color / mirror / Atom feed
* latest kvm-kmod + kvm git vs. 3.8.* distro kernel
@ 2013-03-07 22:00 Gabriel L. Somlo
  2013-03-11 16:30 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel L. Somlo @ 2013-03-07 22:00 UTC (permalink / raw)
  To: jan.kiszka; +Cc: kvm

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 5457 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: latest kvm-kmod + kvm git vs. 3.8.* distro kernel
  2013-03-07 22:00 latest kvm-kmod + kvm git vs. 3.8.* distro kernel Gabriel L. Somlo
@ 2013-03-11 16:30 ` Jan Kiszka
  2013-03-11 20:24   ` Gabriel L. Somlo
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2013-03-11 16:30 UTC (permalink / raw)
  To: Gabriel L. Somlo; +Cc: kvm

On 2013-03-07 23:00, Gabriel L. Somlo wrote:
> 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:

There were several things missing, I've just pushed them into master.
Please retry, it should work for the current next branch of kvm.git.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: latest kvm-kmod + kvm git vs. 3.8.* distro kernel
  2013-03-11 16:30 ` Jan Kiszka
@ 2013-03-11 20:24   ` Gabriel L. Somlo
  0 siblings, 0 replies; 3+ messages in thread
From: Gabriel L. Somlo @ 2013-03-11 20:24 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm

Works great now, thanks !

--Gabriel

On Mon, Mar 11, 2013 at 05:30:45PM +0100, Jan Kiszka wrote:
> On 2013-03-07 23:00, Gabriel L. Somlo wrote:
> > 
> > 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:
> 
> There were several things missing, I've just pushed them into master.
> Please retry, it should work for the current next branch of kvm.git.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-11 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07 22:00 latest kvm-kmod + kvm git vs. 3.8.* distro kernel Gabriel L. Somlo
2013-03-11 16:30 ` Jan Kiszka
2013-03-11 20:24   ` Gabriel L. Somlo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.