All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: "deshantm@gmail.com" <deshantm@gmail.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Nested KVM
Date: Tue, 23 Dec 2008 18:10:10 +0100	[thread overview]
Message-ID: <A1E14563-8441-4305-B7C3-FF21DBE0AD28@suse.de> (raw)
In-Reply-To: <49511A52.3000906@redhat.com>


On 23.12.2008, at 18:05, Avi Kivity wrote:

> Alexander Graf wrote:
>>
>>> I have successfully built the latest kvm, kvm-userspace from git.
>>>
>>> I loaded the kvm_amd module with the nested=1 option.
>>>
>>> The kvm guest that I am working with has an older version
>>> of kvm (Ubuntu 8.10 + kvm package) and during boot I get:
>>>
>>> [   23.673107] Pid: 4278, comm: modprobe Tainted: G S         
>>> 2.6.27-7-generic #1
>>> [   23.673107] RIP: 0010:[<ffffffff8022d35a>]  [<ffffffff8022d35a>]
>>> native_write_msr_safe+0xa/0x10
>>> [   23.673107] RSP: 0018:ffff880018dc3dd8  EFLAGS: 00010002
>>> [   23.673107] RAX: 0000000000001d01 RBX: ffff880018dc3e04 RCX:  
>>> 00000000c0000080
>>>
>>> Maybe it is just that a newer version of KVM is needed?
>>>
>>> I will also try to build a newer version of KVM and test.
>>>
>>> Thanks for any comments.
>>
>> Your guest is writing to an MSR that is unknown to the kvm msr  
>> emulation. What does dmesg on the host say?
>>
>
> You can actually see that it's writing to EFER (rcx = 0xc00000080).   
> But that should always be implemented on AMD.  It's probably  
> complaining about the svme bit, but that can only happen if nested=0?

Oh, right. But then again dmesg spits out a lot of these:

[51056.178705] kvm: 14970: cpu0 unhandled wrmsr: 0xc0010117 data 0

So writing HSAVE fails too, which should only happen on older KVM  
versions.

But nevertheless, setting EFER only works if nested=1 is given as  
module option and -enable-nesting is used on qemu (read: the SVM CPUID  
capability is set).

Alex

  reply	other threads:[~2008-12-23 17:23 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
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 [this message]
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=A1E14563-8441-4305-B7C3-FF21DBE0AD28@suse.de \
    --to=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=deshantm@gmail.com \
    --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.