From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Harper Subject: Re: kvm-kmod.git Date: Mon, 1 Jun 2009 13:15:59 -0500 Message-ID: <20090601181559.GC6411@us.ibm.com> References: <49F5A5DD.4090504@redhat.com> <20090428102030.GB24494@redhat.com> <49F6D96C.1060809@redhat.com> <20090428103409.GC24494@redhat.com> <49F6E026.9020409@redhat.com> <20090601165336.GA6411@us.ibm.com> <4A240961.4060303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ryan Harper , "Michael S. Tsirkin" , KVM list To: Avi Kivity Return-path: Received: from e2.ny.us.ibm.com ([32.97.182.142]:41122 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754595AbZFASQA (ORCPT ); Mon, 1 Jun 2009 14:16:00 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e2.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n51IBgJm024146 for ; Mon, 1 Jun 2009 14:11:42 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n51IG1n8233134 for ; Mon, 1 Jun 2009 14:16:01 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n51IG0CG004968 for ; Mon, 1 Jun 2009 14:16:01 -0400 Content-Disposition: inline In-Reply-To: <4A240961.4060303@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: * Avi Kivity [2009-06-01 12:04]: > Ryan Harper wrote: > >>>I also wonder what happens if one tries to build on > >>>a machine with kvm built into kernel. Ideally one would get > >>>a clear error message. > >>> > >>> > >>kvm-kmod is really designed for those running on pre-kvm distro kernels, > >>and for those testing newer kvm versions on distro kernels. If you can > >>compile your own kernel, download kvm.git and run that. > >> > > > >So no way of having kvm-kmod sync in kvm.git bits and still build > >against the current running kernel? > > > > We must be miscommunicating, what you describe is kvm-kmod.git's sole > purpose in life. > > >I wanted to test out 2.6.29-maint kernel modules and in > >kvm-userspace/kernel, I could checkout maint/2.6.29 in kvm.git and then > >make LINUX= sync. I couldn't quite figure out how to do that with > >kvm-kmod since when I do a ./configure --kerneldir -- it's building > >modules *for* whatever kernel is at kerneldir rather than just syncing > >in the kvm bits from that kerneldir and then building modules against > >the running kernel. > > > > 'make sync' will copy the kvm bits from the linux-2.6 directory, or > $(LINUX) if you specify that to make. > > So: > LINUX= is for the kvm sources (further controlled by whatever branch > is checked out) > --kerneldir= is for the host kernel % cd kvm % git checkout -f 2.6.29-stable origins/maint/2.6.29 % cd ../kvm-kmod.git % ./configure % make LINUX=../kvm sync ./sync -v kvm-devel -l ../kvm Traceback (most recent call last): File "./sync", line 207, in source_sync(arch) File "./sync", line 200, in source_sync hack(T, arch, i) File "./sync", line 123, in hack _hack(T + '/' + file, arch) File "./sync", line 114, in _hack data = file(fname).read() IOError: [Errno 2] No such file or directory: 'source/timer.c' make: *** [sync] Error 1 kvm.git on branch kvm-85: % make LINUX=/home/rharper/work/git/kvm sync ./sync -v kvm-devel -l /home/rharper/work/git/kvm Traceback (most recent call last): File "./sync", line 207, in source_sync(arch) File "./sync", line 200, in source_sync hack(T, arch, i) File "./sync", line 123, in hack _hack(T + '/' + file, arch) File "./sync", line 114, in _hack data = file(fname).read() IOError: [Errno 2] No such file or directory: 'source/eventfd.c' make: *** [sync] Error 1 kvm.git on branch kvm-86: % make LINUX=/home/rharper/work/git/kvm sync ./sync -v kvm-devel -l /home/rharper/work/git/kvm Traceback (most recent call last): File "./sync", line 207, in source_sync(arch) File "./sync", line 200, in source_sync hack(T, arch, i) File "./sync", line 123, in hack _hack(T + '/' + file, arch) File "./sync", line 114, in _hack data = file(fname).read() IOError: [Errno 2] No such file or directory: 'source/eventfd.c' make: *** [sync] Error 1 only branch master seems to work with kvm-kmod -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx ryanh@us.ibm.com