From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxjDs-0001c8-5S for qemu-devel@nongnu.org; Wed, 05 Nov 2008 09:19:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxjDr-0001bc-5q for qemu-devel@nongnu.org; Wed, 05 Nov 2008 09:19:03 -0500 Received: from [199.232.76.173] (port=39734 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxjDr-0001bY-28 for qemu-devel@nongnu.org; Wed, 05 Nov 2008 09:19:03 -0500 Received: from mx1.redhat.com ([66.187.233.31]:58174) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxjDq-0006Ul-P7 for qemu-devel@nongnu.org; Wed, 05 Nov 2008 09:19:02 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id mA5EJ2Kt007936 for ; Wed, 5 Nov 2008 09:19:02 -0500 Received: from file.fab.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA5EJ1rP023340 for ; Wed, 5 Nov 2008 09:19:01 -0500 Received: from file.fab.redhat.com (localhost.localdomain [127.0.0.1]) by file.fab.redhat.com (8.13.1/8.13.1) with ESMTP id mA5EJ1ve026591 for ; Wed, 5 Nov 2008 14:19:01 GMT Received: (from berrange@localhost) by file.fab.redhat.com (8.13.1/8.13.1/Submit) id mA5EJ1mG026569 for qemu-devel@nongnu.org; Wed, 5 Nov 2008 14:19:01 GMT Date: Wed, 5 Nov 2008 14:19:01 +0000 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] Live migration - exec: support to be reintroduced? Message-ID: <20081105141901.GL25523@redhat.com> References: <49113157.3090101@codemonkey.ws> <4911514C.1070300@redhat.com> <4911A934.9040007@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4911A934.9040007@codemonkey.ws> Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Nov 05, 2008 at 08:09:56AM -0600, Anthony Liguori wrote: > Chris Lalancette wrote: > >Anthony Liguori wrote: > > > >>Charles Duffy wrote: > >> > >>>Howdy. > >>> > >>>KVM's live migration support used to support an exec: protoco, > >>>allowing either a completely arbitrary transport or a mechanism for > >>>storing system state to a separate file for later resurrection, being > >>>used in the latter by libvirt's qemu driver. I notice that this > >>>support no longer exists in the current codebase. > >>>Would a patch reimplementing this support be welcome? > >>> > >>Absolutely. I wasn't aware that libvirt used the exec: protocol. I'm > >>somewhat surprised by that. What did it use it for? > >> > > > >Hm, I didn't realize it used it either, but it uses it for doing a save > >operation: > > > >static int qemudDomainSave(virDomainPtr dom, > > const char *path) { > >... > > if (asprintf (&command, "migrate \"exec:" > > "dd of='%s' oflag=append conv=notrunc 2>/dev/null" > > "\"", safe_path) == -1) { > > qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED, > > "%s", _("out of memory")); > > VIR_FREE(safe_path); > > return -1; > > } > > free(safe_path); > > > > if (qemudMonitorCommand(driver, vm, command, &info) < 0) { > >... > > > >I don't know if there is a better way to do that with the qemu monitor, to > >avoid > > using migrate altogether. In any case, I'm sure other people would find > > exec: > >useful as well. > > > > Sure. It would make sense for it to use file: instead of exec: though. > > However, why is it not just using savevm? Saving the CPU state in the > absence of checkpointing storage doesn't make a lot of sense. This isn't for snapshotting, so checkpointing of storage is unneccessary. This is just straight save+restore, akin to hibernate-to-disk for a physical machine. The savevm command only works with qcow files, which is not guarenteed to be available in this context. We do intend to support real snapshotting of VMs at some point, for which "savevm" could be useful Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|