From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Lorenzo del Castillo Subject: Re: git access via http to kvm-kmod Date: Mon, 18 Jun 2012 17:12:42 +0100 Message-ID: <4FDF537A.7090101@hp.com> References: <4FDB6A9B.8050209@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: "kvm@vger.kernel.org" Return-path: Received: from colossus.hpl.hp.com ([192.6.10.2]:49754 "EHLO colossus.hpl.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561Ab2FRQMp (ORCPT ); Mon, 18 Jun 2012 12:12:45 -0400 Received: from localhost (localhost [127.0.0.1]) by colossus.hpl.hp.com (Postfix) with ESMTP id AD8021BA971 for ; Mon, 18 Jun 2012 17:12:43 +0100 (BST) Received: from colossus.hpl.hp.com ([127.0.0.1]) by localhost (colossus.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id znaWKmPYdEK6 for ; Mon, 18 Jun 2012 17:12:43 +0100 (BST) Received: from dhcp-173-59.hpl.hp.com (dhcp-173-59.hpl.hp.com [16.25.173.59]) by colossus.hpl.hp.com (Postfix) with ESMTP id EF6E91BA3F2 for ; Mon, 18 Jun 2012 17:12:42 +0100 (BST) In-Reply-To: <4FDB6A9B.8050209@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: Thanks, Jan I changed the URL in .git/config and 'git submodule update --init'=20 worked and populated the ./linux directory. Then, I ran =2E/configure make sync make but I got a build error: $ make make -C /lib/modules/2.6.32-71.el6.x86_64/build M=3D`pwd` \ LINUXINCLUDE=3D"-I`pwd`/include -Iinclude \ -Iinclude2 -I/lib/modules/2.6.32-71.el6.x86_64/source/include=20 -I/lib/modules/2.6.32-71.el6.x86_64/source/arch/x86/include \ -Iarch/x86/include/generated \ -I`pwd`/include-compat -I`pwd`/x86 \ -include include/linux/autoconf.h \ -include `pwd`/x86/external-module-compat.h" \ "$@" make[1]: Entering directory `/usr/src/kernels/2.6.32-71.el6.x86_64' CC [M] /mnt/data/compilations/kvm-kmod/x86/svm.o In file included from=20 /mnt/data/compilations/kvm-kmod/x86/external-module-compat.h:26, from :0: /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:93= 6: error:=20 redefinition of =91PageTransCompound=92 include/linux/huge_mm.h:108: note: previous definition of=20 =91PageTransCompound=92 was here In file included from=20 /mnt/data/compilations/kvm-kmod/include/asm/kvm_host.h:58, from /mnt/data/compilations/kvm-kmod/include/linux/kvm_host.h:65, from /mnt/data/compilations/kvm-kmod/x86/svm.c:51: include/linux/perf_event.h:466: error: redefinition of =91struct=20 perf_guest_info_callbacks=92 In file included from=20 /mnt/data/compilations/kvm-kmod/include/asm/kvm_host.h:58, from /mnt/data/compilations/kvm-kmod/include/linux/kvm_host.h:65, from /mnt/data/compilations/kvm-kmod/x86/svm.c:51: include/linux/perf_event.h:959: error: conflicting types for=20 =91perf_register_guest_info_callbacks=92 /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:75= 2: note:=20 previous definition of =91perf_register_guest_info_callbacks=92 was her= e include/linux/perf_event.h:960: error: conflicting types for=20 =91perf_unregister_guest_info_callbacks=92 /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:75= 8: note:=20 previous definition of =91perf_unregister_guest_info_callbacks=92 was h= ere make[3]: *** [/mnt/data/compilations/kvm-kmod/x86/svm.o] Error 1 make[2]: *** [/mnt/data/compilations/kvm-kmod/x86] Error 2 make[1]: *** [_module_/mnt/data/compilations/kvm-kmod] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.x86_64' I am compiling against a RHEL6 2.6.32-71.el6.x86_64 kernel. I am not=20 sure if this is feasible. I've read the section "building an external=20 module with older kernels" in http://www.linux-kvm.org/page/Code, but I= =20 am not sure if that applies to my x86_64 architecture. Thanks and regards, Juan On 06/15/2012 06:02 PM, Jan Kiszka wrote: > On 2012-06-15 17:54, Juan wrote: >> Hi, >> >> I cloned the KVM external module kit from http://git.kiszka.org/?p=3D= kvm-kmod.git. >> Following the README, when I try to build it by running 'git submodu= le update', >> I get an error: >> >> $ git submodule initSubmodule 'linux' (http://git.kiszka.org/kvm.git= ) registered >> for path 'linux' >> $ git submodule update >> Cloning into 'linux'... >> fatal: http://git.kiszka.org/kvm.git/info/refs not found: did you ru= n git >> update-server-info on the server? >> Clone of 'http://git.kiszka.org/kvm.git' into submodule path 'linux'= failed > The default submodule path assumes that kvm-kmod is still hosted on > kernel.org. I will fix this. > > Meanwhile you need to set > > [submodule "linux"] > url =3D http://git.kernel.org/pub/scm/virt/kvm/kvm.git > > in .git/config of your kvm-kmod clone. > > Jan >