Re: [PATCH] x86: Pick up local arch trace header

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

 




Il 20/09/09 21:42, Jan Kiszka ha scritto:
> Aidan Marks wrote:
>> Il 20/09/09 18:56, Jan Kiszka ha scritto:
>>> Aidan Marks wrote:
>>>> 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
>>> Here is a better approach:
>>>
>>> diff --git a/include/arch/x86/kvm b/include/arch/x86/kvm
>>> new file mode 120000
>>> index 0000000..c635817
>>> --- /dev/null
>>> +++ b/include/arch/x86/kvm
>>> @@ -0,0 +1 @@
>>> +../../../x86
>>> \ No newline at end of file
>>>
>>> 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
>>>
>> 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
>> $
>>
>> :(
> 
> 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.o
make[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
--
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