From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: git access via http to kvm-kmod Date: Mon, 18 Jun 2012 18:15:49 +0200 Message-ID: <4FDF5435.7090801@siemens.com> References: <4FDB6A9B.8050209@siemens.com> <4FDF50CF.1040505@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "kvm@vger.kernel.org" To: Juan Lorenzo del Castillo Return-path: Received: from david.siemens.de ([192.35.17.14]:25825 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053Ab2FRQP6 (ORCPT ); Mon, 18 Jun 2012 12:15:58 -0400 In-Reply-To: <4FDF50CF.1040505@hp.com> Sender: kvm-owner@vger.kernel.org List-ID: On 2012-06-18 18:01, Juan Lorenzo del Castillo wrote: > Thanks, Jan >=20 > I changed the URL in .git/config and 'git submodule update --init' wo= rked and populated the ./linux directory. Then, I ran >=20 > ./configure > make sync > make >=20 > but I got a build error: >=20 > $ 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/in= clude -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 /mnt/data/compilations/kvm-kmod/x86/external-mo= dule-compat.h:26, > from :0: > /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:= 936: error: redefinition of =91PageTransCompound=92 > include/linux/huge_mm.h:108: note: previous definition of =91PageTran= sCompound=92 was here > In file included from /mnt/data/compilations/kvm-kmod/include/asm/kvm= _host.h:58, > from /mnt/data/compilations/kvm-kmod/include/linux/k= vm_host.h:65, > from /mnt/data/compilations/kvm-kmod/x86/svm.c:51: > include/linux/perf_event.h:466: error: redefinition of =91struct perf= _guest_info_callbacks=92 > In file included from /mnt/data/compilations/kvm-kmod/include/asm/kvm= _host.h:58, > from /mnt/data/compilations/kvm-kmod/include/linux/k= vm_host.h:65, > from /mnt/data/compilations/kvm-kmod/x86/svm.c:51: > include/linux/perf_event.h:959: error: conflicting types for =91perf_= register_guest_info_callbacks=92 > /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:= 752: note: previous definition of =91perf_register_guest_info_callbacks= =92 was here > include/linux/perf_event.h:960: error: conflicting types for =91perf_= unregister_guest_info_callbacks=92 > /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:= 758: note: previous definition of =91perf_unregister_guest_info_callbac= ks=92 was here > 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' >=20 >=20 > I am compiling against a RHEL6 2.6.32-71.el6.x86_64 kernel. I am not = sure if this is feasible. I've read the section "building an external m= odule with older kernels" in http://www.linux-kvm.org/page/Code, but I = am not sure if that applies to my x86_64 architecture. RHEL kernels differ heavily from the Linux upstream kernels that have the same version numbers. kvm-kmod likely assumes that some interfaces are missing, but the RHEL kernel actually have them. You will have to identify these difference and adjust the wrappings of kvm-kmod accordingly. I would accept patches. Jan --=20 Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux