From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhLPC-0005Ib-VW for qemu-devel@nongnu.org; Fri, 15 Nov 2013 10:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhLP4-0001I5-Hi for qemu-devel@nongnu.org; Fri, 15 Nov 2013 10:33:58 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:47059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhLP4-0001Ht-As for qemu-devel@nongnu.org; Fri, 15 Nov 2013 10:33:50 -0500 Received: by mail-wg0-f46.google.com with SMTP id x12so3659303wgg.25 for ; Fri, 15 Nov 2013 07:33:49 -0800 (PST) Date: Fri, 15 Nov 2013 16:33:46 +0100 From: Stefan Hajnoczi Message-ID: <20131115153346.GB26518@stefanha-thinkpad.redhat.com> References: <20131105133412.GD16457@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [migration] questions about removing the old block-migration code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Zhanghaoyu (A)" Cc: "Huangweidong (C)" , "quintela@redhat.com" , "Michael S. Tsirkin" , Michal Privoznik , Marcelo Tosatti , "paolo.bonzini@gmail.com" , "qemu-devel@nongnu.org" , Xiahai , Linqiangmin , Zanghongyong , Luonengjun , "Huangpeng (Peter)" On Fri, Nov 08, 2013 at 01:17:17AM +0000, Zhanghaoyu (A) wrote: > >> I read below words on the report of >> forecast (May 29, 2013)>, We were going to remove the old > >> block-migration code Then people fixed it > >> Good: it works now > >> Bad: We have to maintain both > >> It uses the same port than migration > >> You need to migrate all/none of block devices > >> > >> The old block-migration code said above is that in block-migration.c? > > > >Yes. > > > >> What are the reasons of removing the old block-migration code? Buggy implementation? Or need to migrate all/none of block devices? > > > >Buggy and tightly coupled with the live migration code, making it hard to modify either area independently. > > Thanks a lot for explaining. > Till now, we still use the old block-migration code in our virtualization solution. > Could you detail the bugs that the old block-migration code have? Please use git log block-migration.c to see bugs that have been fixed. The basic problem is that block-migration.c hasn't been actively maintained or used much. My impression is that the newer block migration approach using drive-mirror now has more developer and testing focus (see libvirt if you're curious how drive-mirror can be orchestrated). Stefan