From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJPlI-0002x1-JF for qemu-devel@nongnu.org; Tue, 10 Sep 2013 11:21:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJPlC-0008Qy-Ec for qemu-devel@nongnu.org; Tue, 10 Sep 2013 11:21:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJPlC-0008Qr-6U for qemu-devel@nongnu.org; Tue, 10 Sep 2013 11:21:46 -0400 From: Juan Quintela In-Reply-To: <522F2EDD.2070005@redhat.com> (Paolo Bonzini's message of "Tue, 10 Sep 2013 16:38:21 +0200") References: <1378784607-7398-1-git-send-email-junqing.wang@cs2c.com.cn> <1378784607-7398-3-git-send-email-junqing.wang@cs2c.com.cn> <87eh8weq48.fsf@elfo.elfo> <522F188B.7040808@redhat.com> <87mwnkd44e.fsf@elfo.elfo> <522F2EDD.2070005@redhat.com> Date: Tue, 10 Sep 2013 17:21:39 +0200 Message-ID: <87eh8w4s8s.fsf@elfo.elfo> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH RFC 2/4] Curling: cmdline interface Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: stefanha@redhat.com, owasserm@redhat.com, Jules Wang , qemu-devel@nongnu.org Paolo Bonzini wrote: > Il 10/09/2013 18:37, Juan Quintela ha scritto: >>> I think for the outgoing side it should just be "migrate -f tcp:foo:9999". >>> >>> On the incoming side, perhaps you could have a different ID instead of >>> QEMU_VM_FILE_MAGIC, that triggers fault-tolerance mode automatically? >>> Then again it would be simply "-incoming tcp:foo:9999". >> >> Then how can you distingish between faultolerance and simple migration? >> You need to diferentiate on both sides. >> >> - outgoing side: you need to continue running after sending the whole >> state >> - incoming side: after receivinga lot, you apply it, and have to wait >> for the next one. >> >> It is a different thing to do, we need to tell qemu somehow. > > You look at the first 4 bytes in the stream and distinguish the two cases. We need to change how things are handled. Are we sure we don't want curling over exec/unix/fd?