From patchwork Sat Sep 19 07:13:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 48729 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8J7GCuR002707 for ; Sat, 19 Sep 2009 07:16:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbZISHQG (ORCPT ); Sat, 19 Sep 2009 03:16:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751094AbZISHQG (ORCPT ); Sat, 19 Sep 2009 03:16:06 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:37909 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbZISHQF (ORCPT ); Sat, 19 Sep 2009 03:16:05 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 59992117B9A38; Sat, 19 Sep 2009 09:13:43 +0200 (CEST) Received: from [88.65.253.2] (helo=[192.168.1.10]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #314) id 1Mou8d-0003Ij-00; Sat, 19 Sep 2009 09:13:43 +0200 Message-ID: <4AB484A1.2060404@web.de> Date: Sat, 19 Sep 2009 09:13:37 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Aidan Marks CC: kvm@vger.kernel.org Subject: [PATCH] x86: Pick up local arch trace header (was: kvm-kmod 88 or git not working with 2.6.31) References: <4AB43F9C.50000@cisco.com> In-Reply-To: <4AB43F9C.50000@cisco.com> X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1/MtljgCFn2edggAh0jsvT6IGe7+8E1Zm7oyl0F Hy1hdh8A+YYJpyInXZcWka8J9TacgMKHORp7JwW9MIEs/mvS4o naVUueSig= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Aidan Marks wrote: > 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? 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 --- include/arch/x86/kvm/trace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 120000 include/arch/x86/kvm/trace.h \ No newline at end of file diff --git a/include/arch/x86/kvm/trace.h b/include/arch/x86/kvm/trace.h new file mode 120000 index 0000000..170abca --- /dev/null +++ b/include/arch/x86/kvm/trace.h @@ -0,0 +1 @@ +../../../../x86/trace.h