From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nadav Har'El Subject: Re: Nested virtualization on Intel does not work - second level freezes when third level is starting Date: Thu, 12 Apr 2012 00:24:22 +0300 Message-ID: <20120411212422.GA4080@fermat.math.technion.ac.il> References: <2064795.zbiLdg1ddQ@pc10> <20120411143814.GA20655@fermat.math.technion.ac.il> <8522657.l5i69iyFSZ@pc10> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Guido Winkelmann Return-path: Received: from mailgw13.technion.ac.il ([132.68.225.13]:58477 "EHLO mailgw13.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933381Ab2DKVY3 (ORCPT ); Wed, 11 Apr 2012 17:24:29 -0400 Content-Disposition: inline In-Reply-To: <8522657.l5i69iyFSZ@pc10> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Apr 11, 2012, Guido Winkelmann wrote about "Re: Nested virtualization on Intel does not work - second level freezes when third level is starting": > No, even 2-level nesting is broken. I can run Host->Guest, but not > Host->Guest->2nd Level Guest. I haven't even tried with a third virtualized > level. I see. I guess I completely misunderstood what you reported. Sorry. I think Orit was right. 3.3rc5 had a regression in the nested support, which I discovered and Avi Kivity fixed; I didn't notice this before now, but unfortunately the fix only got to 3.4rc1 and never made it into 3.3 (I just verified, it's not in 3.3.1 but it is in 3.4). This bug displayed itself similarly to what you saw (L1 would hang when running L2). If you can run a later kernel, I hope the problem will be solved. Otherwise, perhaps you can patch your kernel with the following patch and try again? --- .before/arch/x86/kvm/vmx.c 2012-03-19 18:34:24.000000000 +0200 +++ .after/arch/x86/kvm/vmx.c 2012-03-19 18:34:24.000000000 +0200 @@ -2210,6 +2210,10 @@ static int vmx_set_msr(struct kvm_vcpu * msr = find_msr_entry(vmx, msr_index); if (msr) { msr->data = data; + if (msr - vmx->guest_msrs < vmx->save_nmsrs) + kvm_set_shared_msr(msr->index, msr->data, + msr->mask); break; } -- Nadav Har'El | Thursday, Apr 12 2012, nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |If you tell the truth, you don't have to http://nadav.harel.org.il |remember anything.