All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Jim Paris <jim-XrPbb/hENzg@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: kvm problems with Intel host and netbsd/linux guests
Date: Mon, 05 Mar 2007 11:25:33 +0200	[thread overview]
Message-ID: <45EBE20D.6070706@qumranet.com> (raw)
In-Reply-To: <20070305083833.GA10982-lSbMZ+N7itA@public.gmane.org>

Jim Paris wrote:
> Hi,
>
> I'm having trouble getting kvm to work on my system.
> The host has 2 dual-core Intel Xeon 5130 CPUs (flags: lm vmx)
> and is running Linux 2.6.20.1 with kvm-15 (although I've had no luck
> with kvm-12 or kvm-14 either)
>
> If I take (for example) the NetBSD amd64 installation:
>
>   ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/amd64/installation/cdrom/amd64cd-3.1.iso
>
> and run it with
>
>   qemu-img create hda.img 4G
>   qemu-system-x86_64 -cdrom amd64cd-3.1.iso -hda hda.img -boot d
>
> then the screen flashes briefly but qemu crashes with
>
>   unhandled vm exit:  0x80000021
>   rax 0000000000000000 rbx 0000000000000000 rcx 0000000000000000 rdx 0000000000000600
>   rsi 0000000000000000 rdi 0000000000000000 rsp 0000000000000000 rbp 0000000000000000
>   r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 0000000000000000
>   r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
>   rip 000000000000fff0 rflags 00023002
>   cs f000 (ffff0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
>   tr 0000 (08850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
>   ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
>   gdt 0/ffff
>   idt 0/ffff
>   cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
>   Aborted
>
>   

It looks like the guest is rebooting (rip = 0xfff0), probably due to an 
earlier bug, so the register dump doesn't tell us much.


> If I try to run it without kvm:
>
>   qemu-system-x86_64 -no-kvm -cdrom amd64cd-3.1.iso -hda hda.img -boot d
>
> Then I get a blank SDL window that is entirely frozen (can't even
> switch to the qemu monitor).  If I use a stock qemu 0.8.2 to boot the
> cdrom and run the installer, then try to boot the resulting disk image
> with kvm:
>
>   qemu-system-x86_64 -hda hda.img -boot c
>   qemu-system-x86_64 -no-kvm -hda hda.img -boot c
>
> then I get the exact same results -- the first crashes with "unhandled
> vm exit" and the second freezes.
>
> Any suggestions?
>
> Also, on the Linux side of things, I have a disk image from a computer
> that also crashes when I try to boot it.  It dies with "exception 14"
> after Grub.  But, it does work fine with -no-kvm.  The kernel it's
> booting is a 32-bit k7 optimized kernel; is it expected behavior for
> that to work fine under -no-kvm but crash on an Intel host?
>   

If the kernel uses AMD-specific instructions, yes.  Can you send .config 
for that kernel?

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2007-03-05  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05  8:38 kvm problems with Intel host and netbsd/linux guests Jim Paris
     [not found] ` <20070305083833.GA10982-lSbMZ+N7itA@public.gmane.org>
2007-03-05  9:25   ` Avi Kivity [this message]
     [not found]     ` <45EBE20D.6070706-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-05  9:43       ` Jim Paris

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=45EBE20D.6070706@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=jim-XrPbb/hENzg@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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.