From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1aWv-0000gQ-0D for qemu-devel@nongnu.org; Tue, 23 Jul 2013 07:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1aWt-0001mY-Qz for qemu-devel@nongnu.org; Tue, 23 Jul 2013 07:13:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1aWt-0001mS-J4 for qemu-devel@nongnu.org; Tue, 23 Jul 2013 07:13:19 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6NBDJO4022867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 23 Jul 2013 07:13:19 -0400 Message-ID: <51EE6540.6080602@redhat.com> Date: Tue, 23 Jul 2013 13:13:04 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1374464794-13057-1-git-send-email-famz@redhat.com> <1374464794-13057-2-git-send-email-famz@redhat.com> <51ECD26A.80104@redhat.com> <20130722064834.GA1992@T430s.redhat.com> <51ED1262.4000000@redhat.com> <20130723020343.GB25603@T430s.redhat.com> In-Reply-To: <20130723020343.GB25603@T430s.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] block: allow live commit of active image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: famz@redhat.com Cc: kwolf@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Il 23/07/2013 04:03, Fam Zheng ha scritto: >> > stop >> > block-job-complete ide0-hd0 >> > cont >> > > I see, this way the job needs to stop vm in the point of all copying > drained, then report 'ready' and wait for manual complete before > swapping active, sounds not so good. Ideally we should mirror writes > _synchronously_ to 'top' and 'base' after 'ready' state and wait for > manual complete to switch image. Do you think this is easy to do? Synchronous mirroring makes it harder to handle errors in writing the target, especially if you're not running with rerror=stop/werror=stop (they would be reported to the guest). Paolo