From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJP5H-0000C0-Jh for qemu-devel@nongnu.org; Tue, 10 Sep 2013 10:38:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJP5B-0002mr-KV for qemu-devel@nongnu.org; Tue, 10 Sep 2013 10:38:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJP5B-0002ml-Cp for qemu-devel@nongnu.org; Tue, 10 Sep 2013 10:38:21 -0400 Message-ID: <522F2EDD.2070005@redhat.com> Date: Tue, 10 Sep 2013 16:38:21 +0200 From: Paolo Bonzini MIME-Version: 1.0 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> In-Reply-To: <87mwnkd44e.fsf@elfo.elfo> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 2/4] Curling: cmdline interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: stefanha@redhat.com, owasserm@redhat.com, Jules Wang , qemu-devel@nongnu.org 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. Paolo