Received: from eggs.gnu.org ([208.118.235.92]:50632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh7sY-0001wD-Fa for qemu-devel@nongnu.org; Tue, 19 Jun 2012 19:30:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sh7sW-0001qI-I0 for qemu-devel@nongnu.org; Tue, 19 Jun 2012 19:30:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34139 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh7sW-0001ps-8M for qemu-devel@nongnu.org; Tue, 19 Jun 2012 19:30:32 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <1340148512.28143.52.camel@pasglop> Date: Wed, 20 Jun 2012 01:30:26 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <894DCBE1-CD2E-46DC-91FA-FD127C326004@suse.de> References: <1339239192.24838.84.camel@pasglop> <1339241642.24838.92.camel@pasglop> <5DD2FF44-F27E-49C4-AF2C-2EF95341DF6E@suse.de> <87lijjjqk5.fsf@elfo.mitica> <1340137841.28143.34.camel@pasglop> <874nq6kj3m.fsf@elfo.mitica> <1340146833.28143.50.camel@pasglop> <87y5nij3r6.fsf@elfo.mitica> <1340148512.28143.52.camel@pasglop> Subject: Re: [Qemu-devel] vm state save/restore question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: "qemu-devel@nongnu.org Developers" , quintela@redhat.com On 20.06.2012, at 01:28, Benjamin Herrenschmidt wrote: > On Wed, 2012-06-20 at 01:11 +0200, Juan Quintela wrote: >>=20 >>> I am confident I can come up with something as far as the kernel and >>> qemu <-> kernel interface goes. I need to get my head around the = details >>> on how to implement that two stage save process in qemu though and = the >>> corresponding restore which will need to read both snapshots and = apply >>> the diff before shooting it back to the kernel. >>>=20 >>> BTW. Does migration in pure qemu (full system emu) works similarily, = ie, >>> two stage ? If it does I can easily prototype everything there. >>=20 >> It does, but I have no clue how the hashed page tables are = implemented >> on ppc, i.e. if there is anything specific for bare metal. Alex? >=20 > We support the paravirtualized -M pseries in full emu as well, in = which > case the hashed page table is handled by qemu itself who implements = the > H_ENTER & co hypercalls. So it's very similar, except that qemu = doesn't > have to ask the kernel to get a snapshot :-) >=20 > So I can flush out the storage format and two stage process inside = qemu, > and then bother with the kvm/kernel interface. >=20 > Normal "bare metal" operation in qemu (or even KVM "PR") doesn't = require > this as in that case the hash table is just a normal part of the guest > memory, it's only an issue when doing paravirtualized guest such as > pseries (aka PAPR). IIRC we still allocate it outside of normal guest memory, so you don't = get the migration for free :). Alex