kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git access via http to kvm-kmod
@ 2012-06-15 15:54 Juan
  2012-06-15 17:02 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Juan @ 2012-06-15 15:54 UTC (permalink / raw)
  To: kvm

Hi,

I cloned the KVM external module kit from http://git.kiszka.org/?p=kvm-kmod.git.
Following the README, when I try to build it by running 'git submodule 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 run git
update-server-info on the server?
Clone of 'http://git.kiszka.org/kvm.git' into submodule path 'linux' failed

Thanks,
Juan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git access via http to kvm-kmod
  2012-06-15 15:54 git access via http to kvm-kmod Juan
@ 2012-06-15 17:02 ` Jan Kiszka
  2012-06-18 16:12   ` Juan Lorenzo del Castillo
       [not found]   ` <4FDF50CF.1040505@hp.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2012-06-15 17:02 UTC (permalink / raw)
  To: Juan; +Cc: kvm

On 2012-06-15 17:54, Juan wrote:
> Hi,
> 
> I cloned the KVM external module kit from http://git.kiszka.org/?p=kvm-kmod.git.
> Following the README, when I try to build it by running 'git submodule 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 run 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 = http://git.kernel.org/pub/scm/virt/kvm/kvm.git

in .git/config of your kvm-kmod clone.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git access via http to kvm-kmod
  2012-06-15 17:02 ` Jan Kiszka
@ 2012-06-18 16:12   ` Juan Lorenzo del Castillo
       [not found]   ` <4FDF50CF.1040505@hp.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Juan Lorenzo del Castillo @ 2012-06-18 16:12 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Thanks, Jan

I changed the URL in .git/config and 'git submodule update --init' 
worked and populated the ./linux directory. Then, I ran

./configure
make sync
make

but I got a build error:

$ make
make -C /lib/modules/2.6.32-71.el6.x86_64/build M=`pwd` \
LINUXINCLUDE="-I`pwd`/include -Iinclude \
-Iinclude2 -I/lib/modules/2.6.32-71.el6.x86_64/source/include 
-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-module-compat.h:26,
from <command-line>:0:
/mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:936: error: 
redefinition of ‘PageTransCompound’
include/linux/huge_mm.h:108: note: previous definition of 
‘PageTransCompound’ 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/kvm_host.h:65,
from /mnt/data/compilations/kvm-kmod/x86/svm.c:51:
include/linux/perf_event.h:466: error: redefinition of ‘struct 
perf_guest_info_callbacks’
In file included from 
/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 
‘perf_register_guest_info_callbacks’
/mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:752: note: 
previous definition of ‘perf_register_guest_info_callbacks’ was here
include/linux/perf_event.h:960: error: conflicting types for 
‘perf_unregister_guest_info_callbacks’
/mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:758: note: 
previous definition of ‘perf_unregister_guest_info_callbacks’ 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'


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 
module with older kernels" in http://www.linux-kvm.org/page/Code, but I 
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=kvm-kmod.git.
>> Following the README, when I try to build it by running 'git submodule 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 run 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 = http://git.kernel.org/pub/scm/virt/kvm/kvm.git
>
> in .git/config of your kvm-kmod clone.
>
> Jan
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git access via http to kvm-kmod
       [not found]   ` <4FDF50CF.1040505@hp.com>
@ 2012-06-18 16:15     ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2012-06-18 16:15 UTC (permalink / raw)
  To: Juan Lorenzo del Castillo; +Cc: kvm@vger.kernel.org

On 2012-06-18 18:01, Juan Lorenzo del Castillo wrote:
> Thanks, Jan
> 
> I changed the URL in .git/config and 'git submodule update --init' worked and populated the ./linux directory. Then, I ran
> 
> ./configure
> make sync
> make
> 
> but I got a build error:
> 
> $ make
> make -C /lib/modules/2.6.32-71.el6.x86_64/build M=`pwd` \
>         LINUXINCLUDE="-I`pwd`/include -Iinclude \
>              -Iinclude2 -I/lib/modules/2.6.32-71.el6.x86_64/source/include -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-module-compat.h:26,
>                  from <command-line>:0:
> /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:936: error: redefinition of ‘PageTransCompound’
> include/linux/huge_mm.h:108: note: previous definition of ‘PageTransCompound’ 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/kvm_host.h:65,
>                  from /mnt/data/compilations/kvm-kmod/x86/svm.c:51:
> include/linux/perf_event.h:466: error: redefinition of ‘struct perf_guest_info_callbacks’
> In file included from /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 ‘perf_register_guest_info_callbacks’
> /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:752: note: previous definition of ‘perf_register_guest_info_callbacks’ was here
> include/linux/perf_event.h:960: error: conflicting types for ‘perf_unregister_guest_info_callbacks’
> /mnt/data/compilations/kvm-kmod/x86/../external-module-compat-comm.h:758: note: previous definition of ‘perf_unregister_guest_info_callbacks’ 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'
> 
> 
> 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 module 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

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-18 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-15 15:54 git access via http to kvm-kmod Juan
2012-06-15 17:02 ` Jan Kiszka
2012-06-18 16:12   ` Juan Lorenzo del Castillo
     [not found]   ` <4FDF50CF.1040505@hp.com>
2012-06-18 16:15     ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).