From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Nested KVM Date: Tue, 23 Dec 2008 19:05:22 +0200 Message-ID: <49511A52.3000906@redhat.com> References: <1e16a9ed0812221855i78de14c4p98c047a3908b6884@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "deshantm@gmail.com" , "kvm@vger.kernel.org" To: Alexander Graf Return-path: Received: from mx2.redhat.com ([66.187.237.31]:43633 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbYLWRF2 (ORCPT ); Tue, 23 Dec 2008 12:05:28 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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:[] [] >> 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? -- error compiling committee.c: too many arguments to function