From: Avi Kivity <avi@redhat.com>
To: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cc: Alexander Graf <agraf@suse.de>, kvm@vger.kernel.org
Subject: Re: Running KVM inside a chroot
Date: Sun, 16 Oct 2011 18:23:25 +0200 [thread overview]
Message-ID: <4E9B04FD.5030201@redhat.com> (raw)
In-Reply-To: <CAKYuF5THb4AjO6U7bBgUTnzpzNf67eKa41wG9jwWibrcuRu+-w@mail.gmail.com>
On 10/13/2011 02:51 AM, Jorge Lucangeli Obes wrote:
> On Wed, Oct 12, 2011 at 3:52 PM, Jorge Lucangeli Obes
> <jorgelo@chromium.org> wrote:
> > On Wed, Oct 12, 2011 at 12:55 PM, Alexander Graf <agraf@suse.de> wrote:
> >>
> >> On 12.10.2011, at 20:49, Jorge Lucangeli Obes wrote:
> >>
> >>> Hi all,
> >>>
> >>> I'm working on Chromium OS development. We have a pretty elaborate
> >>> chroot inside of which we carry out all development. We use KVM to
> >>> launch Chromium OS builds inside a VM for testing. Turns out that for
> >>> some reason, when QEMU is launched from inside the chroot, KVM itself
> >>> seems not to be used. The VM is extremely slow.
> >>>
> >>> Is this known/expected? QEMU is installed inside the chroot, the KVM
> >>> modules are loaded, the /dev/kvm device is present and accesible. Any
> >>> ideas on how to debug this?
> >>
> >> The first obvious idea I'd have here would be to strace the qemu process and check what happens when it opens /dev/kvm :)
>
> Resending since original attachment was too large.
>
> > That's what I thought. I did a test run under strace. I'm attaching
> > the list of syscalls from the call to 'open(/dev/kvm)' to the first
> > successful 'ioctl(KVM_RUN)'. /dev/kvm seems to be opened correctly, a
> > VCPU is created, and then that VCPU is used with KVM_RUN. After the
> > first call to 'ioctl(KVM_RUN)', there are long lists of more KVM_RUN
> > calls, separated by brief groups of other calls. So, IIUC, KVM seems
> > to be used, and seems to be "working", but the VM is one order of
> > magnitude slower anyways.
> >
> > Any ideas?
>
What do top/vmstat/kvm_stat say?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-10-16 16:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 18:49 Running KVM inside a chroot Jorge Lucangeli Obes
2011-10-12 19:55 ` Alexander Graf
[not found] ` <CAKYuF5TG4+5yaVZh9KX0wLOjjg2h01Maz-VOsr2u4BVHzE8i7g@mail.gmail.com>
2011-10-13 0:51 ` Jorge Lucangeli Obes
2011-10-16 16:23 ` Avi Kivity [this message]
2011-10-17 6:10 ` Jorge Lucangeli Obes
2011-10-17 9:56 ` Avi Kivity
2011-10-17 16:37 ` Jorge Lucangeli Obes
2011-10-18 10:29 ` Avi Kivity
2011-10-18 16:43 ` Jorge Lucangeli Obes
2011-10-18 17:28 ` Avi Kivity
2011-10-18 17:39 ` Jorge Lucangeli Obes
2011-10-18 17:46 ` Avi Kivity
2011-10-20 3:30 ` Jorge Lucangeli Obes
2011-10-30 14:36 ` Avi Kivity
2011-10-30 14:41 ` Avi Kivity
2011-11-01 16:06 ` Jorge Lucangeli Obes
2011-11-01 16:29 ` Gerd Hoffmann
2011-11-01 18:10 ` Jorge Lucangeli Obes
2011-11-02 0:12 ` Jorge Lucangeli Obes
2011-11-02 8:36 ` Gerd Hoffmann
2011-10-19 15:38 ` David Ahern
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=4E9B04FD.5030201@redhat.com \
--to=avi@redhat.com \
--cc=agraf@suse.de \
--cc=jorgelo@chromium.org \
--cc=kvm@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).