From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9pEs-00073d-TL for qemu-devel@nongnu.org; Wed, 24 Jan 2007 16:01:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9pEr-00073R-Fw for qemu-devel@nongnu.org; Wed, 24 Jan 2007 16:01:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9pEr-00073O-Ba for qemu-devel@nongnu.org; Wed, 24 Jan 2007 16:01:01 -0500 Received: from sp604002mt.neufgp.fr ([84.96.92.61] helo=sMtp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9pEq-0004Ai-QH for qemu-devel@nongnu.org; Wed, 24 Jan 2007 16:01:01 -0500 Received: from [84.102.211.179] by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JCE00CHQ4KZFYC0@sp604002mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Wed, 24 Jan 2007 21:51:00 +0100 (CET) Date: Wed, 24 Jan 2007 21:51:12 +0100 From: Fabrice Bellard Subject: Re: [Qemu-devel] [RFC] QEMU Live Migration In-reply-to: <45B42BF9.6020604@cs.utexas.edu> Message-id: <45B7C6C0.2020003@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <45B42BF9.6020604@cs.utexas.edu> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@cs.utexas.edu Cc: qemu-devel@nongnu.org I looked at your patch and it is OK for me. The 'ssh:' implementation is a nice trick. In order to be usable on win32, it is still needed to implement a more portable system with a TCP connection. The dirty flag 0x04 is unfortunately used by kqemu - I should have documented it ! You can use 0x08 for the live migration. Regards, Fabrice. Anthony Liguori wrote: > Howdy, > > I wanted to post a draft of my QEMU live migration patch. I think > there's a lingering memory allocation problem. I also need to implement > ARP forwarding and a TCP transport stream. > > However, I thought I'd post an initial version in case anyone wants to > play around with it. > > Once you apply the patch, make sure you've got it on both machines. For > my setup, I've got a common NFS share mounted in /mnt. Then I run: > > qemu -hda /mnt/win2k.img -monitor telnet:0.0.0.0:1025,server,nowait -vnc :2 > > Then, I connect to the monitor and execute: > > (qemu) migrate ssh://woolly > > When the migration completes, the monitor command will finish and then I > can connect to the machine on woolly:2. > > The ssh command will be derived from argc/argv so it's important to > ensure that the -hda path is valid on both machines. > > All three patches are required and should be applied in order of: > qemu-apic-save-restore.diff qemu-file.diff qemu-migration.diff > > Regards, > > Anthony Liguori