All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Todd Deshane" <deshantm@gmail.com>
To: "Alexander Graf" <agraf@suse.de>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Nested KVM
Date: Mon, 29 Dec 2008 18:47:38 -0500	[thread overview]
Message-ID: <1e16a9ed0812291547k52a14b56r7de24c4cf046206b@mail.gmail.com> (raw)
In-Reply-To: <9F8C73AC-8AEF-48A7-8AC6-3BEEAF348ED9@suse.de>

On Wed, Dec 24, 2008 at 4:20 AM, Alexander Graf <agraf@suse.de> wrote:
>
>
> Ugh. Looks like the emulation part is still broken :-(. Please use the
> attached patch to disable the emulation optimization for now.
>
> Avi, could you please apply that patch for kvm-82 too, so we get something
> working out? I'll take a closer look at what's broken exactly later on.
>
> Alex
>
>

So I am working with the latest git, from today.

The emulation error went away and the nested KVM guest partially works.

The errors that I am seeing late in the normal guest boot (which seem
non-fatal) are:
Dec 29 18:33:31 amdbox kernel: [ 1060.446054] bad partial csum:
csum=5888/5694 len=80
Dec 29 18:33:33 amdbox kernel: [ 1061.934164] bad partial csum:
csum=5888/5694 len=80
Dec 29 18:33:33 amdbox kernel: [ 1062.170127] bad partial csum:
csum=5888/5694 len=60
Dec 29 18:33:34 amdbox kernel: [ 1063.419124] bad partial csum:
csum=5888/5694 len=270
Dec 29 18:33:35 amdbox kernel: [ 1063.667817] bad partial csum:
csum=5888/5694 len=270
Dec 29 18:33:35 amdbox kernel: [ 1063.927839] bad partial csum:
csum=5888/5694 len=270
Dec 29 18:33:35 amdbox kernel: [ 1064.126336] bad partial csum:
csum=5888/5694 len=252
Dec 29 18:33:35 amdbox kernel: [ 1064.274429] bad partial csum:
csum=5888/5694 len=152
Dec 29 18:33:35 amdbox kernel: [ 1064.522702] bad partial csum:
csum=5888/5694 len=152
Dec 29 18:33:36 amdbox kernel: [ 1064.776290] bad partial csum:
csum=5888/5694 len=152
Dec 29 18:33:38 amdbox kernel: [ 1067.309123] __ratelimit: 4 callbacks
suppressed
Dec 29 18:33:38 amdbox kernel: [ 1067.309126] bad partial csum:
csum=5888/5694 len=252
Dec 29 18:33:39 amdbox kernel: [ 1068.160737] bad partial csum:
csum=5888/5694 len=241
Dec 29 18:33:41 amdbox kernel: [ 1070.170049] bad partial csum:
csum=5888/5694 len=60

After that I am able to start the nested guest with:
sudo qemu-system-x86_64 -hda ubuntu-server.img -cdrom
Desktop/ubuntu-8.10-server-amd64.iso

The nested guest also has the latest git checkout

The nested guest shows the Ubuntu install CD welcome and selecting a
language and starting
the boot process starts a very little bit and the screen goes black.

The nested guest doesn't crash, but becomes very unresponsive, can't
ping it, can't ssh, etc.
It seems like it only runs for a short time before it becomes
unresponsive (less than 30
seconds).

I can attach to the qemu-system-x86_64

(gdb) where
#0  0x00007fa8cc4a1482 in select () from /lib/libc.so.6
#1  0x0000000000408bcb in main_loop_wait (timeout=0)
    at /backup/src/kvm-src/kvm-userspace/qemu/vl.c:3617
#2  0x00000000005160fa in kvm_main_loop ()
    at /backup/src/kvm-src/kvm-userspace/qemu/qemu-kvm.c:599
#3  0x000000000040d106 in main (argc=<value optimized out>,
    argv=0x7fffd58e9f48, envp=<value optimized out>)
    at /backup/src/kvm-src/kvm-userspace/qemu/vl.c:3779

After some time, the qemu-system-x86_64 process starts to take
between 97 and 100% of the CPU.

The base system is still running OK, but no new messages are printed
in /var/log/syslog

I am sure there are more KVM debugging tricks....

Any suggestions?

Thanks,
Todd

-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

  parent reply	other threads:[~2008-12-29 23:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23  2:55 Nested KVM Todd Deshane
2008-12-23  6:26 ` Todd Deshane
2008-12-23  9:00 ` Alexander Graf
2008-12-23 16:35   ` Todd Deshane
2008-12-23 17:04     ` Alexander Graf
2008-12-24  4:18       ` Todd Deshane
2008-12-24  9:20         ` Alexander Graf
2008-12-25  9:59           ` Avi Kivity
2008-12-25 13:49             ` Alexander Graf
2008-12-29 23:47           ` Todd Deshane [this message]
2008-12-30 17:19             ` Todd Deshane
2008-12-31 15:17               ` Alexander Graf
2008-12-23 17:05   ` Avi Kivity
2008-12-23 17:10     ` Alexander Graf
2008-12-23 17:18       ` 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=1e16a9ed0812291547k52a14b56r7de24c4cf046206b@mail.gmail.com \
    --to=deshantm@gmail.com \
    --cc=agraf@suse.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.