>> > >> >Now our userspace code is in git repo, and separated from
kernel
>> > code?
>> > >> >So I think the  instruction from
>> > http://kvm.qumranet.com/kvmwiki/HOWTO
>> > >> >is not relevant anymore if we are to compile/install userspace
code
>> > >> >(with qemu) from scratch?
>> > >> >
>> > >> >I compiled kvm kernel first (kvm22), then pull userspace repo,
>then:
>> > >> >
>> > >> >./configure --prefix=/usr
>> > >> >make
>> > >> >
>> > >> >But I got error like this:
>> > >> >
>> > >> >make -C kernel
>> > >> >make[1]: Entering directory
>> > `/home/jun/projects/kvm/userspace/kernel'
>> > >> >make -C /lib/modules/2.6.20-15-generic/build M=`pwd` "$@"
>> > >> >make[2]: Entering directory
>> > `/usr/src/linux-headers-2.6.20-15-generic'
>> > >> >make[3]: *** No rule to make target
>> > >> >`/home/jun/projects/kvm/userspace/kernel/svm.o', needed by
>> > >> >`/home/jun/projects/kvm/userspace/kernel/kvm.o'.  Stop.
>> > >> >make[2]: *** [_module_/home/jun/projects/kvm/userspace/kernel]
>Error
>> > 2
>> > >> >make[2]: Leaving directory
>> > `/usr/src/linux-headers-2.6.20-15-generic'
>> > >> >make[1]: *** [all] Error 2
>> > >> >make[1]: Leaving directory
>`/home/jun/projects/kvm/userspace/kernel'
>> > >> >make: *** [kernel] Error 2
>> > >> >
>> > >> >
>> > >> >
>> > >> >Moreover, there is no README or INSTALL file in userspace repo
at
>> > all.
>> > >> >So it is really confused on how to compile/install userspace
code.
>> > >> >
>> > >> >Any hint to fix this?
>> > >> >
>> > >> >Thanks,
>> > >> >Jun
>> > >>
>> > >> You need to be in the '/home/jun/projects/kvm/userspace/kernel/'
>> > >> directory and run make LINUX=PATH sync.
>> > >> The command copies the kvm code into the directory and compiles
>them.
>> > >>
>> > >
>> > >So where the PATH should point to?
>> >
>> > You should pull the kernel git repo and point PATH there.
>> > This way you don't compile the whole kernel, the kvm sources are
synced
>> > into the userspace/kernel directory and compiled there against YOUR
>> > kernel sources.
>> >
>>
>> Are you sure this is what you want to do? It is not a good idea to
>> require users to have the whole kernel git repo just to compile user
>> code or kvm kernel module.
>>
>> Not everybody needs git repo, and not everybody is kernel developer,
isnt
>it?
>>
>
>Now I understand that it is possible to compile the kernel code (kvm
>module) by compile userspace code (which do both - build kernel and
>user code - for us at the same time). But as we separate userspace and
>kernel code, is it good to do that?
>
>I suppose that users will download kvm module (kvm-22, for instance)
>and usercode separately, and compile/install them separately. It is
>not necessary to combile both in the same step like current situation.
>That is also more intuitive way, isnt it?


The ability to compile KVM kernel code under the userspace/kernel
directory provides users of using the KVM modules with their own
kernels, not necessarily the kvm git kernel.
Still users who like to update their kernel can compile the kernel
separately and the user space separtly.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to