From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Subject: Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running) Date: Thu, 8 Feb 2018 11:40:48 +0000 Message-ID: <20180208114048.GA20703@redhat.com> References: <20180207153106.w3guxswbj6tciczc@eukaryote> <4abbf785-5df3-584a-8743-825c7435c2a2@redhat.com> <20180208104622.35qp5i3n3pphmte3@eukaryote> <20180208113422.gq7k5h3yez6lsqr4@eukaryote> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: David Hildenbrand , libvirt-users@redhat.com, kvm@vger.kernel.org To: Kashyap Chamarthy Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750877AbeBHLkz (ORCPT ); Thu, 8 Feb 2018 06:40:55 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5969876F94 for ; Thu, 8 Feb 2018 11:40:55 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20180208113422.gq7k5h3yez6lsqr4@eukaryote> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Feb 08, 2018 at 12:34:24PM +0100, Kashyap Chamarthy wrote: > On Thu, Feb 08, 2018 at 11:46:24AM +0100, Kashyap Chamarthy wrote: > > On Wed, Feb 07, 2018 at 11:26:14PM +0100, David Hildenbrand wrote: > > > On 07.02.2018 16:31, Kashyap Chamarthy wrote: > > > > [...] > > > > > Sounds like a similar problem as in > > > https://bugzilla.kernel.org/show_bug.cgi?id=198621 > > > > > > In short: there is no (live) migration support for nested VMX yet. So as > > > soon as your guest is using VMX itself ("nVMX"), this is not expected to > > > work. > > > > Actually, live migration with nVMX _does_ work insofar as you have > > _identical_ CPUs on both source and destination — i.e. use the QEMU > > '-cpu host' for the L1 guests. At least that's been the case in my > > experience. FWIW, I frequently use that setup in my test environments. > > Correcting my erroneous statement above: For live migration to work in a > nested KVM setup, it is _not_ mandatory to use "-cpu host". Yes, assuming the L1 guests both get given the same CPU model, then you can use any CPU model at all for the L2 guests and still be migrate safe, since your L1 guests provide homogeneous hardware to host L2, regardless of whether the L0 host is homogeneous. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|