public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: Ryan Harper <ryanh@us.ibm.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	KVM list <kvm@vger.kernel.org>
Subject: Re: kvm-kmod.git
Date: Mon, 1 Jun 2009 13:15:59 -0500	[thread overview]
Message-ID: <20090601181559.GC6411@us.ibm.com> (raw)
In-Reply-To: <4A240961.4060303@redhat.com>

* Avi Kivity <avi@redhat.com> [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 <module>
    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 <module>
    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 <module>
    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

  parent reply	other threads:[~2009-06-01 18:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27 12:32 kvm-kmod.git Avi Kivity
2009-04-27 14:08 ` kvm-kmod.git Farkas Levente
2009-04-27 14:56   ` kvm-kmod.git Avi Kivity
2009-04-27 17:18 ` kvm-kmod.git Cam Macdonell
2009-04-28  6:39   ` kvm-kmod.git Avi Kivity
2009-04-28 10:20 ` kvm-kmod.git Michael S. Tsirkin
2009-04-28 10:24   ` kvm-kmod.git Avi Kivity
2009-04-28 10:34     ` kvm-kmod.git Michael S. Tsirkin
2009-04-28 10:53       ` kvm-kmod.git Avi Kivity
2009-04-28 10:53         ` kvm-kmod.git Michael S. Tsirkin
2009-04-28 11:00           ` kvm-kmod.git Avi Kivity
2009-06-01 16:53         ` kvm-kmod.git Ryan Harper
2009-06-01 17:01           ` kvm-kmod.git Avi Kivity
2009-06-01 18:00             ` kvm-kmod.git Ryan Harper
2009-06-01 18:17               ` kvm-kmod.git Avi Kivity
2009-06-01 18:15             ` Ryan Harper [this message]
2009-06-01 18:19               ` kvm-kmod.git Avi Kivity
2009-06-01 18:47                 ` kvm-kmod.git Ryan Harper
2009-06-01 19:40                   ` kvm-kmod.git Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090601181559.GC6411@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox