public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: James Morris <jmorris-gx6/JNMH7DfYtjvyW6yDsg@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Plan 9 install problems
Date: Sat, 16 Dec 2006 09:58:21 +0200	[thread overview]
Message-ID: <4583A71D.50300@qumranet.com> (raw)
In-Reply-To: <XMMS.LNX.4.64.0612151252450.24662@d.namei>

James Morris wrote:
> I just tried installing Plan 9 from the current CD ISO (see 
> http://plan9.bell-labs.com/plan9/download.html) under KVM and didn't get 
> very far.
>
> It boots, then hangs after some initialization.  Screenshot of the guest 
> at this point: http://namei.org/images/p9-kvm.png
>
> On the host, the startup messages look like:
>
> set_vram_mapping: memory: e0000000 - e0800000
> set_vram_mapping: return 0x2b03ced87000
> vga_update_vram: base 0x2b03ced87000 ptr 0x2b03ce585010
> vga_update_vram: done
>
> kernel: kvm: unhandled rdmsr: 1
>
>   

This is an old Penium msr related to machine checks.

> When the guest hangs, the host starts logging this repeatedly: 
>
> kernel: double fault 0x80031b30 @ 0xf01003c9
>   

Since we don't handle the rdmsr, we inject a general protection fault.  
The guest isn't ready to handle this, so we inject a double fault.  The 
guest isn't ready to handle a double fault either -- at this point we 
should triple fault but we don't.

> This is with the 2.6.20-rc1 kernel and kvm-6 userland.
>
> Seems to work as expected with the kvm kernel module unloaded (i.e. plain 
> qemu).
>   

The way to fix is to add handling to {svm,vmx}_get_msr() for msr 1 (and 
any other pointless msrs the guest reads or writes).  From a cursory 
reading of the machine check docs, returning 0 should be fine for msr 1.

[those common msrs should really be moved to kvm_main.c one day]

-- 
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

  reply	other threads:[~2006-12-16  7:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 17:59 Plan 9 install problems James Morris
2006-12-16  7:58 ` Avi Kivity [this message]
     [not found]   ` <4583A71D.50300-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-12-16 18:02     ` Michael Riepe
     [not found]       ` <458434C0.5010800-0QoEqw4nQxo@public.gmane.org>
2006-12-17  9:03         ` Avi Kivity
     [not found]           ` <458507E9.7080509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-12-17  9:48             ` Linux - KVM - MAC OS X sean-cz32UWRuVxBIf6P1QZMOBw
     [not found]               ` <48097.83.180.72.194.1166348910.squirrel-zlo8yn1fO0LtICQD1roDeV6hYfS7NtTn@public.gmane.org>
2006-12-17  9:53                 ` Avi Kivity
2006-12-17 12:28             ` Plan 9 install problems Michael Riepe
     [not found]               ` <458537E0.8040800-0QoEqw4nQxo@public.gmane.org>
2006-12-17 12:43                 ` 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=4583A71D.50300@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=jmorris-gx6/JNMH7DfYtjvyW6yDsg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox