Received: from eggs.gnu.org ([140.186.70.92]:43179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRTj7-0001aq-Kn for qemu-devel@nongnu.org; Tue, 31 May 2011 14:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRTj4-0001Xm-AP for qemu-devel@nongnu.org; Tue, 31 May 2011 14:31:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRTj3-0001Wb-OV for qemu-devel@nongnu.org; Tue, 31 May 2011 14:31:34 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4VGB2De019141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 May 2011 12:11:03 -0400 Date: Tue, 31 May 2011 13:06:36 -0300 From: Marcelo Tosatti Message-ID: <20110531160636.GA9656@amt.cnet> References: <20110523213115.164535428@amt.cnet> <20110523213411.003695437@amt.cnet> <4DE209C1.4080807@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DE209C1.4080807@redhat.com> Subject: Re: [Qemu-devel] [patch 6/7] QEMU live block copy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, dlaor@redhat.com, qemu-devel@nongnu.org On Sun, May 29, 2011 at 11:54:25AM +0300, Avi Kivity wrote: > On 05/24/2011 12:31 AM, Marcelo Tosatti wrote: > >Support live image copy + switch. That is, copy an image backing > >a guest hard disk to a destination image (destination image must > >be created separately), and switch to this copy. > > > >Command syntax: > > > >block_copy device filename [-i] -- live block copy device to image > > -i for incremental copy (base image shared between src and destination) > > > >Please refer to qmp-commands diff for more details. > > IMO it would have been nicer to use the mirror driver for all > copying; there would be no STAGE_DIRTY; simply a background process > that copies over all blocks, taking care not to conflict with > ongoing writes. Don't see the advantage of doing that. Disadvantages: - Guest write performance is affected during copying (guest writes compete with stream of writes from copy). - Complexity to handle copy write conflict (there is no need to handle that with current solution). - Unability to have the mirror functionality in a separate driver. > It would also remove the conflict with migration. There is no fundamental problem with migration, its simply unsupported now. > But that's an implementation detail and can be changed later.