From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxdEJ-0008Fm-Mm for qemu-devel@nongnu.org; Wed, 05 Nov 2008 02:55:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxdEI-0008Eh-Dc for qemu-devel@nongnu.org; Wed, 05 Nov 2008 02:55:06 -0500 Received: from [199.232.76.173] (port=47877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxdEI-0008Ee-7m for qemu-devel@nongnu.org; Wed, 05 Nov 2008 02:55:06 -0500 Received: from mx20.gnu.org ([199.232.41.8]:29352) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxdEH-0007DH-9Y for qemu-devel@nongnu.org; Wed, 05 Nov 2008 02:55:05 -0500 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxdEF-00073X-OM for qemu-devel@nongnu.org; Wed, 05 Nov 2008 02:55:04 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mA57t03o006177 for ; Wed, 5 Nov 2008 02:55:00 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA57sxF2013490 for ; Wed, 5 Nov 2008 02:54:59 -0500 Received: from localhost.localdomain (vpn-12-143.rdu.redhat.com [10.11.12.143]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mA57swTV007641 for ; Wed, 5 Nov 2008 02:54:59 -0500 Message-ID: <4911514C.1070300@redhat.com> Date: Wed, 05 Nov 2008 08:54:52 +0100 From: Chris Lalancette MIME-Version: 1.0 Subject: Re: [Qemu-devel] Live migration - exec: support to be reintroduced? References: <49113157.3090101@codemonkey.ws> In-Reply-To: <49113157.3090101@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: 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 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. -- Chris Lalancette