kvm-kmod 88 or git not working with 2.6.31
Hello
I am trying to compile kvm-kmod-devel-88.tar.gz with 2.6.31. Seems there is a missing header file.
vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \
"$@"make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD /tmp/kvm-kmod-devel-88/x86/built-in.o
CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o
CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o
CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o
CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o
In file included from /tmp/kvm-kmod-devel-88/x86/trace.h:355,
from /tmp/kvm-kmod-devel-88/x86/x86.c:83:
include/trace/define_trace.h:53:43: error: arch/x86/kvm/trace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/x86.o] Error 1
make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
I also tried pulling from git via:
git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
cd kvm-kmod
git submodule update --init
./configure --kerneldir=/usr/src/linux
make sync
make
still the same error.
is there a patch for 2.6.31 support?
thanks
Aidan
cisco Systems, Inc.
PATCH 1/1 x86: Pick up local arch trace header (was: kvm-kmod 88 or git not working with 2.6.31)
Quoted 80 lines · Aidan Marks
Hello
I am trying to compile kvm-kmod-devel-88.tar.gz with 2.6.31. Seems there is a missing header file.
vger kvm-kmod-devel-88 # make
make -C
/lib/modules/2.6.31-gentoo/buildM=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 " \ "$@"make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD
/tmp/kvm-kmod-devel-88/x86/built-in.oCC [M]
/tmp/kvm-kmod-devel-88/x86/svm.oCC [M]
/tmp/kvm-kmod-devel-88/x86/vmx.oCC [M]
/tmp/kvm-kmod-devel-88/x86/vmx-debug.oCC [M]
/tmp/kvm-kmod-devel-88/x86/kvm_main.oCC [M]
/tmp/kvm-kmod-devel-88/x86/x86.oIn file included from
/tmp/kvm-kmod-devel-88/x86/trace.h:355,from /tmp/kvm-kmod-devel-88/x86/x86.c:83:
include/trace/define_trace.h:53:43: error:arch/x86/kvm/trace.h: No such file or directorymake[3]: *** [
/tmp/kvm-kmod-devel-88/x86/x86.o] Error 1make[2]: *** [
/tmp/kvm-kmod-devel-88/x86] Error 2make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
I also tried pulling from git via:
git clone
git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
cd kvm-kmod
git submodule update --init
./configure --kerneldir=/usr/src/linux
make sync
make
Quoted 3 lines
still the same error.
is there a patch for 2.6.31 support?
This should fix it:
---------->
This unbreaks 2.6.31 builds but also ensures that we always use the most recent one.
---
include/arch/x86/kvm/trace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 120000 include/arch/x86/kvm/trace.h
include/arch/x86/kvm/trace.h new file +1 -0
@@ -0,0 +1 @@ +../../../../x86/trace.h
Aidan Marks
AppliedRe: [PATCH] x86: Pick up local arch trace header
Hi Jan
thanks, applied your patch, getting further, but now missing mmutrace.h...
vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \
"$@"
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD /tmp/kvm-kmod-devel-88/x86/built-in.o
CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o
CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o
CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o
CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o
CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o
In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220,
from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
thanks
Aidan
Il 19/09/09 17:13, Jan Kiszka ha scritto:
Quoted 108 lines
Quoted 80 lines · Aidan Marks
Hello
I am trying to compile kvm-kmod-devel-88.tar.gz with 2.6.31. Seems there is a missing header file.
vger kvm-kmod-devel-88 # make
make -C
/lib/modules/2.6.31-gentoo/buildM=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 " \ "$@"make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD
/tmp/kvm-kmod-devel-88/x86/built-in.oCC [M]
/tmp/kvm-kmod-devel-88/x86/svm.oCC [M]
/tmp/kvm-kmod-devel-88/x86/vmx.oCC [M]
/tmp/kvm-kmod-devel-88/x86/vmx-debug.oCC [M]
/tmp/kvm-kmod-devel-88/x86/kvm_main.oCC [M]
/tmp/kvm-kmod-devel-88/x86/x86.oIn file included from
/tmp/kvm-kmod-devel-88/x86/trace.h:355,from /tmp/kvm-kmod-devel-88/x86/x86.c:83:
include/trace/define_trace.h:53:43: error:arch/x86/kvm/trace.h: No such file or directorymake[3]: *** [
/tmp/kvm-kmod-devel-88/x86/x86.o] Error 1make[2]: *** [
/tmp/kvm-kmod-devel-88/x86] Error 2make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
I also tried pulling from git via:
git clone
git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
cd kvm-kmod
git submodule update --init
./configure --kerneldir=/usr/src/linux
make sync
makeQuoted 3 lines
still the same error.
is there a patch for 2.6.31 support?
This should fix it:
---------->
This unbreaks 2.6.31 builds but also ensures that we always use the most recent one.
Signed-off-by Jan Kiszka <[email protected]>---
include/arch/x86/kvm/trace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 120000 include/arch/x86/kvm/trace.hinclude/arch/x86/kvm/trace.h new file +1
-0@@ -0,0 +1 @@ +../../../../x86/trace.h
Re: [PATCH] x86: Pick up local arch trace header
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:
Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
Here is a better approach:
include/arch/x86/kvm new file +1 -0
@@ -0,0 +1 @@ +../../../x86
I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.git queue
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
make
Jan
Re: [PATCH] x86: Pick up local arch trace header
Il 20/09/09 18:56, Jan Kiszka ha scritto:
Quoted 46 lines
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2Here is a better approach:
include/arch/x86/kvm new file +1
-0@@ -0,0 +1 @@ +../../../x86I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.gitqueue
Quoted 9 lines
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
makeJan
Hi Jan
$ git clone git://git.kiszka.org/kvm-kmod.git Initialized empty Git repository in /tmp/kvm-kmod/.git/ remote: Counting objects: 449, done. remote: Compressing objects: 100% (217/217), done. remote: Total 449 (delta 262), reused 374 (delta 214) Receiving objects: 100% (449/449), 99.59 KiB | 38 KiB/s, done. Resolving deltas: 100% (262/262), done. $ cd kvm-kmod $ git submodule update --init Submodule 'linux-2.6' (git://git.kiszka.org/kvm.git) registered for path 'linux-2.6' Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/ fatal: The remote end hung up unexpectedly Clone of 'git://git.kiszka.org/kvm.git' into submodule path 'linux-2.6' failed $
:(
so i backed out the original patch and applied your new patch to devel-88 instead.
ok it compiles but now I get unknown symbols warnings below. this occurs with or without --kerneldir.
[snip]
Building modules, stage 2.
MODPOST 3 modules
WARNING: "__tracepoint_kvm_mmu_paging_element" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_sync_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmio" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_accessed_bit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_exit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pio" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_zap_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pic_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cpuid" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_unsync_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msr" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_accept_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_inj_virq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_hypercall" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_page_fault" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_entry" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ioapic_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_ipi" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cr" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ack_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_walker_error" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_get_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_dirty_bit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_pagetable_walk" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msi_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
CC /tmp/kvm-kmod-devel-88/x86/kvm-amd.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm-amd.ko CC /tmp/kvm-kmod-devel-88/x86/kvm-intel.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm-intel.ko CC /tmp/kvm-kmod-devel-88/x86/kvm.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
thanks
Aidan
Re: [PATCH] x86: Pick up local arch trace header
Quoted 76 lines · Aidan Marks
Il 20/09/09 18:56, Jan Kiszka ha scritto:
Quoted 45 lines
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2Here is a better approach:
include/arch/x86/kvm new file +1
-0@@ -0,0 +1 @@ +../../../x86I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.gitqueueQuoted 9 lines
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
makeJan
Hi Jan
$ git clone git://git.kiszka.org/kvm-kmod.git Initialized empty Git repository in /tmp/kvm-kmod/.git/ remote: Counting objects: 449, done. remote: Compressing objects: 100% (217/217), done. remote: Total 449 (delta 262), reused 374 (delta 214) Receiving objects: 100% (449/449), 99.59 KiB | 38 KiB/s, done. Resolving deltas: 100% (262/262), done. $ cd kvm-kmod $ git submodule update --init Submodule 'linux-2.6' (git://git.kiszka.org/kvm.git) registered for path 'linux-2.6' Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/ fatal: The remote end hung up unexpectedly Clone of 'git://git.kiszka.org/kvm.git' into submodule path 'linux-2.6' failed $
Quoted 1 line
:(
Ah, my fault. That's because your 'origin' is now kiszka.org. Go to kvm-kmod/.git/config and update the submodule url togit://git.kernel.org/pub/scm/virt/kvm/kvm.git. Then do a 'git submodule update' and proceed with the other steps.
Quoted 64 lines
so i backed out the original patch and applied your new patch to devel-88 instead.
ok it compiles but now I get unknown symbols warnings below. this occurs with or without --kerneldir.
[snip]
Building modules, stage 2.
MODPOST 3 modules
WARNING: "__tracepoint_kvm_mmu_paging_element" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_sync_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmio" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_accessed_bit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_exit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pio" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_zap_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pic_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cpuid" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_unsync_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msr" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_accept_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_inj_virq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_hypercall" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_page_fault" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_entry" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ioapic_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_ipi" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cr" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ack_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_walker_error" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_get_page" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_dirty_bit" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_pagetable_walk" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msi_set_irq" [/tmp/kvm-kmod-devel-88/x86/kvm.ko] undefined!
Quoted 7 lines
CC /tmp/kvm-kmod-devel-88/x86/kvm-amd.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm-amd.ko CC /tmp/kvm-kmod-devel-88/x86/kvm-intel.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm-intel.ko CC /tmp/kvm-kmod-devel-88/x86/kvm.mod.o LD [M] /tmp/kvm-kmod-devel-88/x86/kvm.komake[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
I think (hope) that this is due to issues which are fixed in latest kvm-kmod. Let us try to get the git version running first as it shall be released as kvm-kmod-2.6.31 soon.
Jan
Re: [PATCH] x86: Pick up local arch trace header
Il 20/09/09 21:42, Jan Kiszka ha scritto:
Quoted 76 lines
Quoted 75 lines · Aidan Marks
Il 20/09/09 18:56, Jan Kiszka ha scritto:
Quoted 45 lines
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2Here is a better approach:
include/arch/x86/kvm new file +1
-0@@ -0,0 +1 @@ +../../../x86I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.gitqueueQuoted 9 lines
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
makeJan
Hi Jan
$ git clone git://git.kiszka.org/kvm-kmod.git Initialized empty Git repository in /tmp/kvm-kmod/.git/ remote: Counting objects: 449, done. remote: Compressing objects: 100% (217/217), done. remote: Total 449 (delta 262), reused 374 (delta 214) Receiving objects: 100% (449/449), 99.59 KiB | 38 KiB/s, done. Resolving deltas: 100% (262/262), done. $ cd kvm-kmod $ git submodule update --init Submodule 'linux-2.6' (git://git.kiszka.org/kvm.git) registered for path 'linux-2.6' Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/ fatal: The remote end hung up unexpectedly Clone of 'git://git.kiszka.org/kvm.git' into submodule path 'linux-2.6' failed $
Quoted 7 lines
Quoted 1 line
:(
Ah, my fault. That's because your 'origin' is now kiszka.org. Go to kvm-kmod/.git/config and update the submodule url to
git://git.kernel.org/pub/scm/virt/kvm/kvm.git. Then do a 'git submodule update' and proceed with the other steps.
Hi Jan
ok thanks (sorry, new to git).
unfortunately, still getting the mmutrace.h failure (same error without kerneldir):
vger kvm-kmod # git submodule update --init
Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/
remote: Counting objects: 1330383, done.
remote: Compressing objects: 100% (222242/222242), done.
remote: Total 1330383 (delta 1109098), reused 1320132 (delta 1099129) Receiving objects: 100% (1330383/1330383), 328.34 MiB | 926 KiB/s, done. Resolving deltas: 100% (1109098/1109098), done.
Submodule path 'linux-2.6': checked out '46c6cf63295e00af6092977800049a716757381f'
vger kvm-kmod # ./configure --kerneldir=/usr/src/linux
vger kvm-kmod # make sync
./sync -v v2.6.31-rc3-3430-g46c6cf6 -l ./linux-2.6
makevger kvm-kmod # make
make -C /usr/src/linux 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 " \
"$@"
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD /tmp/kvm-kmod/x86/built-in.o
CC [M] /tmp/kvm-kmod/x86/svm.o
CC [M] /tmp/kvm-kmod/x86/vmx.o
CC [M] /tmp/kvm-kmod/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod/x86/kvm_main.o
CC [M] /tmp/kvm-kmod/x86/x86.o
CC [M] /tmp/kvm-kmod/x86/mmu.o
In file included from /tmp/kvm-kmod/x86/mmutrace.h:220,
from /tmp/kvm-kmod/x86/mmu.c:197:include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod/x86/mmu.o] Error 1
make[2]: *** [/tmp/kvm-kmod/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
vger kvm-kmod #
If I then touch include/trace/define_trace.h I get further. Whether that is correct or not, you tell me... besides that, I'm now getting:
vger kvm-kmod # make
make -C /usr/src/linux 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 " \
"$@"
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
LD /tmp/kvm-kmod/x86/built-in.o
CC [M] /tmp/kvm-kmod/x86/svm.o
CC [M] /tmp/kvm-kmod/x86/vmx.o
CC [M] /tmp/kvm-kmod/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod/x86/kvm_main.o
CC [M] /tmp/kvm-kmod/x86/x86.o
CC [M] /tmp/kvm-kmod/x86/mmu.o
CC [M] /tmp/kvm-kmod/x86/emulate.o
CC [M] /tmp/kvm-kmod/x86/../anon_inodes.o
CC [M] /tmp/kvm-kmod/x86/irq.o
CC [M] /tmp/kvm-kmod/x86/i8259.o
CC [M] /tmp/kvm-kmod/x86/lapic.o
CC [M] /tmp/kvm-kmod/x86/ioapic.o
CC [M] /tmp/kvm-kmod/x86/preempt.o
CC [M] /tmp/kvm-kmod/x86/i8254.o
CC [M] /tmp/kvm-kmod/x86/coalesced_mmio.o
CC [M] /tmp/kvm-kmod/x86/irq_comm.o
CC [M] /tmp/kvm-kmod/x86/timer.o
CC [M] /tmp/kvm-kmod/x86/eventfd.omake[3]: *** No rule to make target /tmp/kvm-kmod/x86/assigned-dev.o', needed by /tmp/kvm-kmod/x86/kvm.o'. Stop.
make[2]: *** [/tmp/kvm-kmod/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2
thanks
Aidan
Re: [PATCH] x86: Pick up local arch trace header
Quoted 85 lines · Aidan Marks
Il 20/09/09 21:42, Jan Kiszka ha scritto:
Quoted 76 lines
Quoted 75 lines · Aidan Marks
Il 20/09/09 18:56, Jan Kiszka ha scritto:
Quoted 45 lines
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2Here is a better approach:
include/arch/x86/kvm new file +1
-0@@ -0,0 +1 @@ +../../../x86I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.gitqueueQuoted 9 lines
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
makeJan
Hi Jan
$ git clone git://git.kiszka.org/kvm-kmod.git Initialized empty Git repository in /tmp/kvm-kmod/.git/ remote: Counting objects: 449, done. remote: Compressing objects: 100% (217/217), done. remote: Total 449 (delta 262), reused 374 (delta 214) Receiving objects: 100% (449/449), 99.59 KiB | 38 KiB/s, done. Resolving deltas: 100% (262/262), done. $ cd kvm-kmod $ git submodule update --init Submodule 'linux-2.6' (git://git.kiszka.org/kvm.git) registered for path 'linux-2.6' Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/ fatal: The remote end hung up unexpectedly Clone of 'git://git.kiszka.org/kvm.git' into submodule path 'linux-2.6' failed $Quoted 6 lines
Quoted 1 line
:(
Ah, my fault. That's because your 'origin' is now kiszka.org. Go to kvm-kmod/.git/config and update the submodule url to
git://git.kernel.org/pub/scm/virt/kvm/kvm.git. Then do a 'git submodule update' and proceed with the other steps.
Quoted 6 lines
Hi Jan
ok thanks (sorry, new to git).
unfortunately, still getting the
mmutrace.hfailure (same error without kerneldir):
[...]
OK, there was more git foo hidden behind "clone my tree": Once you cloned it, you are still on the master branch. You then have to checkout that 'queue' branch I was referring to:
.../kvm-kmod> git checkout -b queue origin/queue
Now you have to run 'git submodule update' once again as my queue uses a different revision from kvm.git. But then everything should really work.
Jan
Re: [PATCH] x86: Pick up local arch trace header
Il 20/09/09 23:24, Jan Kiszka ha scritto:
Quoted 96 lines
Quoted 83 lines · Aidan Marks
Il 20/09/09 21:42, Jan Kiszka ha scritto:
Quoted 76 lines
Quoted 75 lines · Aidan Marks
Il 20/09/09 18:56, Jan Kiszka ha scritto:
Quoted 45 lines
Quoted 21 lines · Aidan Marks
Hi Jan
thanks, applied your patch, getting further, but now missing
mmutrace.h...vger kvm-kmod-devel-88 # make
make -C /lib/modules/2.6.31-gentoo/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 " \ "$@" make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' LD /tmp/kvm-kmod-devel-88/x86/built-in.o CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o CC [M] /tmp/kvm-kmod-devel-88/x86/mmu.o In file included from /tmp/kvm-kmod-devel-88/x86/mmutrace.h:220, from /tmp/kvm-kmod-devel-88/x86/mmu.c:184:Quoted 7 lines
include/trace/define_trace.h:53:43: error: ./mmutrace.h: No such file or directory
make[3]: *** [/tmp/kvm-kmod-devel-88/x86/mmu.o] Error 1 make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2
make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [all] Error 2Here is a better approach:
include/arch/x86/kvm new file +1
-0@@ -0,0 +1 @@ +../../../x86I also pushed a kvm-kmod update for 2.6.31-based modules in my repos, see
git://git.kiszka.org/kvm-kmod.gitqueueQuoted 9 lines
To use this one instead of devel-88, clone it and run
git submodule update --init
./configure
make sync
makeJan
Hi Jan
$ git clone git://git.kiszka.org/kvm-kmod.git Initialized empty Git repository in /tmp/kvm-kmod/.git/ remote: Counting objects: 449, done. remote: Compressing objects: 100% (217/217), done. remote: Total 449 (delta 262), reused 374 (delta 214) Receiving objects: 100% (449/449), 99.59 KiB | 38 KiB/s, done. Resolving deltas: 100% (262/262), done. $ cd kvm-kmod $ git submodule update --init Submodule 'linux-2.6' (git://git.kiszka.org/kvm.git) registered for path 'linux-2.6' Initialized empty Git repository in /tmp/kvm-kmod/linux-2.6/.git/ fatal: The remote end hung up unexpectedly Clone of 'git://git.kiszka.org/kvm.git' into submodule path 'linux-2.6' failed $Quoted 6 lines
Quoted 1 line
:(
Ah, my fault. That's because your 'origin' is now kiszka.org. Go to kvm-kmod/.git/config and update the submodule url to
git://git.kernel.org/pub/scm/virt/kvm/kvm.git. Then do a 'git submodule update' and proceed with the other steps.Quoted 6 lines
Hi Jan
ok thanks (sorry, new to git).
unfortunately, still getting the
mmutrace.hfailure (same error without kerneldir):[...]
OK, there was more git foo hidden behind "clone my tree": Once you cloned it, you are still on the master branch. You then have to checkout that 'queue' branch I was referring to:
Quoted 7 lines
.../kvm-kmod> git checkout -b queue origin/queue
Now you have to run 'git submodule update' once again as my queue uses a different revision from kvm.git. But then everything should really work.
Jan
Ah, right. ok. hmm, still getting these symbol warnings:
vger kvm-kmod # git checkout -b queue origin/queue
M linux-2.6
Branch queue set up to track remote branch queue from origin. Switched to a new branch 'queue'
vger kvm-kmod # git submodule update
Submodule path 'linux-2.6': checked out 'abb015ac65852287c7a7c243c8cdee966a38854d'
vger kvm-kmod # ./configure --kerneldir=/usr/src/linux vger kvm-kmod # make sync
./sync -v v2.6.31-rc3-4139-gabb015a -l ./linux-2.6 vger kvm-kmod # make
make -C /usr/src/linux 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 " \
"$@"
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
CC [M] /tmp/kvm-kmod/x86/svm.o
CC [M] /tmp/kvm-kmod/x86/vmx.o
CC [M] /tmp/kvm-kmod/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod/x86/kvm_main.o
CC [M] /tmp/kvm-kmod/x86/x86.o
CC [M] /tmp/kvm-kmod/x86/mmu.o
CC [M] /tmp/kvm-kmod/x86/emulate.o
CC [M] /tmp/kvm-kmod/x86/../anon_inodes.o
CC [M] /tmp/kvm-kmod/x86/irq.o
CC [M] /tmp/kvm-kmod/x86/i8259.o
CC [M] /tmp/kvm-kmod/x86/lapic.o
CC [M] /tmp/kvm-kmod/x86/ioapic.o
CC [M] /tmp/kvm-kmod/x86/preempt.o
CC [M] /tmp/kvm-kmod/x86/i8254.o
CC [M] /tmp/kvm-kmod/x86/coalesced_mmio.o
CC [M] /tmp/kvm-kmod/x86/irq_comm.o
CC [M] /tmp/kvm-kmod/x86/timer.o
CC [M] /tmp/kvm-kmod/x86/eventfd.o
CC [M] /tmp/kvm-kmod/x86/assigned-dev.o
CC [M] /tmp/kvm-kmod/x86/../external-module-compat.o
CC [M] /tmp/kvm-kmod/x86/../request-irq-compat.o
CC [M] /tmp/kvm-kmod/x86/iommu.o
CC [M] /tmp/kvm-kmod/x86/../srcu.o
LD [M] /tmp/kvm-kmod/x86/kvm.o
LD [M] /tmp/kvm-kmod/x86/kvm-intel.o
LD [M] /tmp/kvm-kmod/x86/kvm-amd.o
LD /tmp/kvm-kmod/built-in.o Building modules, stage 2.
MODPOST 3 modules
WARNING: "vma_kernel_pagesize" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_paging_element" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_sync_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmio" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_accessed_bit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_exit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pio" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_zap_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pic_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cpuid" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_unsync_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msr" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_accept_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_inj_virq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_hypercall" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_page_fault" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_entry" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ioapic_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_ipi" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cr" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_ack_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_walker_error" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_get_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_dirty_bit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_pagetable_walk" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msi_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
CC /tmp/kvm-kmod/x86/kvm-amd.mod.o
LD [M] /tmp/kvm-kmod/x86/kvm-amd.ko
CC /tmp/kvm-kmod/x86/kvm-intel.mod.o
LD [M] /tmp/kvm-kmod/x86/kvm-intel.ko
CC /tmp/kvm-kmod/x86/kvm.mod.o
LD [M] /tmp/kvm-kmod/x86/kvm.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
vger kvm-kmod #
Re: [PATCH] x86: Pick up local arch trace header
Quoted 113 lines · Aidan Marks
Ah, right. ok. hmm, still getting these symbol warnings:
vger kvm-kmod # git checkout -b queue origin/queue
M linux-2.6
Branch queue set up to track remote branch queue from origin. Switched to a new branch 'queue'
vger kvm-kmod # git submodule update
Submodule path 'linux-2.6': checked out 'abb015ac65852287c7a7c243c8cdee966a38854d'
vger kvm-kmod # ./configure --kerneldir=/usr/src/linux
vger kvm-kmod # make sync
./sync -v v2.6.31-rc3-4139-gabb015a -l ./linux-2.6
vger kvm-kmod # make
make -C/usr/src/linuxM=pwd\
LINUXINCLUDE="-Ipwd/include -Iinclude \
-Iarch/x86/include -Ipwd/include-compat \
-includeinclude/linux/autoconf.h\
-includepwd/x86/external-module-compat.h " \
"$@"
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' CC [M] /tmp/kvm-kmod/x86/svm.o
CC [M] /tmp/kvm-kmod/x86/vmx.o
CC [M] /tmp/kvm-kmod/x86/vmx-debug.o
CC [M] /tmp/kvm-kmod/x86/kvm_main.o
CC [M] /tmp/kvm-kmod/x86/x86.o
CC [M] /tmp/kvm-kmod/x86/mmu.o
CC [M] /tmp/kvm-kmod/x86/emulate.o
CC [M] /tmp/kvm-kmod/x86/../anon_inodes.o
CC [M] /tmp/kvm-kmod/x86/irq.o
CC [M] /tmp/kvm-kmod/x86/i8259.o
CC [M] /tmp/kvm-kmod/x86/lapic.o
CC [M] /tmp/kvm-kmod/x86/ioapic.o
CC [M] /tmp/kvm-kmod/x86/preempt.o
CC [M] /tmp/kvm-kmod/x86/i8254.o
CC [M] /tmp/kvm-kmod/x86/coalesced_mmio.o
CC [M] /tmp/kvm-kmod/x86/irq_comm.o
CC [M] /tmp/kvm-kmod/x86/timer.o
CC [M] /tmp/kvm-kmod/x86/eventfd.o
CC [M] /tmp/kvm-kmod/x86/assigned-dev.o
CC [M] /tmp/kvm-kmod/x86/../external-module-compat.o
CC [M] /tmp/kvm-kmod/x86/../request-irq-compat.o
CC [M] /tmp/kvm-kmod/x86/iommu.o
CC [M] /tmp/kvm-kmod/x86/../srcu.o
LD [M] /tmp/kvm-kmod/x86/kvm.o
LD [M] /tmp/kvm-kmod/x86/kvm-intel.o
LD [M] /tmp/kvm-kmod/x86/kvm-amd.o
LD /tmp/kvm-kmod/built-in.o
Building modules, stage 2.
MODPOST 3 modules
WARNING: "vma_kernel_pagesize" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_paging_element" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_sync_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmio" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_mmu_set_accessed_bit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_exit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_pio" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_mmu_zap_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_pic_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cpuid" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_mmu_unsync_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msr" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_accept_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_inj_virq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_hypercall" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_page_fault" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_entry" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_apic" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_ioapic_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_apic_ipi" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_cr" [/tmp/kvm-kmod/x86/kvm.ko] undefined!WARNING: "
__tracepoint_kvm_ack_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_walker_error" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_get_page" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_set_dirty_bit" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_mmu_pagetable_walk" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
WARNING: "__tracepoint_kvm_msi_set_irq" [/tmp/kvm-kmod/x86/kvm.ko] undefined!
CC /tmp/kvm-kmod/x86/kvm-amd.mod.oLD [M] /tmp/kvm-kmod/x86/kvm-amd.ko
CC /tmp/kvm-kmod/x86/kvm-intel.mod.o
LD [M] /tmp/kvm-kmod/x86/kvm-intel.ko
Quoted 7 lines
CC /tmp/kvm-kmod/x86/kvm.mod.o
LD [M] /tmp/kvm-kmod/x86/kvm.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
vger kvm-kmod #
Aidan, were you able to solve this? I was having the same (original) problem in Xubuntu 64-bits with a custom 2.6.31 kernel and kvm-88. I still haven't tried Jan's patch (paper deadline at work) but I wanted to know if you had made any progress.
Cheers,
Jorge
Re: [PATCH] x86: Pick up local arch trace header
Quoted 5 lines · Jorge Lucángeli Obes
...
Aidan, were you able to solve this? I was having the same (original) problem in Xubuntu 64-bits with a custom 2.6.31 kernel and kvm-88. I still haven't tried Jan's patch (paper deadline at work) but I wanted to know if you had made any progress.
The kvm-kmod tree at git://git.kiszka.org/kvm-kmod.git (branch 'queue') meanwhile contains patches that solved all Aidan's build problems.
But note: Even your customized 2.6.31 contains the very same KVM kernel sources my tree is currently pulling in. So you could make your life easier by simply compiling them along your kernel.
The kvm-kmod patches will become important again when we pull more recent KVM sources that are not yet part of the latest kernel, at least not part of the particular kernel one is forced to use (for whatever reason).
Jan
Re: [PATCH] x86: Pick up local arch trace header
2009/9/24 Jan Kiszka <[email protected]>:
Quoted 10 lines
Quoted 5 lines · Jorge Lucángeli Obes
...
Aidan, were you able to solve this? I was having the same (original) problem in Xubuntu 64-bits with a custom 2.6.31 kernel and kvm-88. I still haven't tried Jan's patch (paper deadline at work) but I wanted to know if you had made any progress.The kvm-kmod tree at
git://git.kiszka.org/kvm-kmod.git(branch 'queue') meanwhile contains patches that solved all Aidan's build problems.
Quoted 8 lines
But note: Even your customized 2.6.31 contains the very same KVM kernel sources my tree is currently pulling in. So you could make your life easier by simply compiling them along your kernel.
The kvm-kmod patches will become important again when we pull more recent KVM sources that are not yet part of the latest kernel, at least not part of the particular kernel one is forced to use (for whatever reason).
Thanks Jan!
Re: [PATCH] x86: Pick up local arch trace header
In reply to Jan KiszkaQuoted 12 lines · Jan Kiszka
Quoted 6 lines · Jorge Lucángeli Obes
...
Aidan, were you able to solve this? I was having the same (original) problem in Xubuntu 64-bits with a custom 2.6.31 kernel and kvm-88. I still haven't tried Jan's patch (paper deadline at work) but I wanted to know if you had made any progress.The kvm-kmod tree at
git://git.kiszka.org/kvm-kmod.git(branch 'queue') meanwhile contains patches that solved all Aidan's build problems.
Can you post them as patches please?
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.