All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aidan Marks <aidan@cisco.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] x86: Pick up local arch trace header
Date: Sun, 20 Sep 2009 23:49:43 +1000	[thread overview]
Message-ID: <4AB632F7.3040500@cisco.com> (raw)
In-Reply-To: <4AB62CF4.9040103@web.de>



Il 20/09/09 23:24, Jan Kiszka ha scritto:
> Aidan Marks wrote:
>> 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):
> [...]
> 
> 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
> 

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 #

  reply	other threads:[~2009-09-20 13:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-19  2:19 kvm-kmod 88 or git not working with 2.6.31 Aidan Marks
2009-09-19  7:13 ` [PATCH] x86: Pick up local arch trace header (was: kvm-kmod 88 or git not working with 2.6.31) Jan Kiszka
2009-09-19 21:44   ` [PATCH] x86: Pick up local arch trace header Aidan Marks
2009-09-20  8:56     ` Jan Kiszka
2009-09-20 11:02       ` Aidan Marks
2009-09-20 11:42         ` Jan Kiszka
2009-09-20 12:55           ` Aidan Marks
2009-09-20 13:24             ` Jan Kiszka
2009-09-20 13:49               ` Aidan Marks [this message]
2009-09-23 19:28                 ` Jorge Lucángeli Obes
2009-09-24  6:42                   ` Jan Kiszka
2009-09-24  7:04                     ` Jorge Lucángeli Obes
2009-09-24  7:44                     ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB632F7.3040500@cisco.com \
    --to=aidan@cisco.com \
    --cc=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.