Received: from eggs.gnu.org ([2001:4830:134:3::10]:51521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhAF-0003dP-05 for qemu-devel@nongnu.org; Thu, 15 Jan 2015 04:56:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBhAB-0003Y9-Il for qemu-devel@nongnu.org; Thu, 15 Jan 2015 04:56:30 -0500 Received: from smtp.sangfor.com.cn ([58.251.49.30]:38203 helo=mail.sangfor.com.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhAA-0003XL-Fc for qemu-devel@nongnu.org; Thu, 15 Jan 2015 04:56:27 -0500 Date: Thu, 15 Jan 2015 17:56:17 +0800 From: "Zhang Haoyu" References: <201501130948157439113@sangfor.com.cn>, <201501131002532239699@sangfor.com.cn>, <201501141041046517018@sangfor.com.cn>, <201501141558472151450@sangfor.com.cn>, <201501151154417870577@sangfor.com.cn> Message-ID: <201501151756164579870@sangfor.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] question about live migration with storage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel Cc: Gleb Natapov , Stefan Hajnoczi On 2015-01-15 17:11:49, Paolo Bonzini wrote: > > On 15/01/2015 04:54, Zhang Haoyu wrote: > >>>> > >> 2) Finer-grain control the parameters of block migration (dirty bitmap > >>>> > >> granularity). > >>>> > >> > >>>> > >> 3) Block and RAM migration do not share the same socket and thus can > >>>> > >> more easily be parallelized. > >>>> > >> > > drive_mirror job is done in main-thread, > > then how to accept the qmp_migrate request while drive_mirror is performing? > > If need to wait for the completion of drive_mirror, > > how to implement the parallelization between block and ram migration? > > drive_mirror runs in the background, using coroutines. > I see, when waiting the completion of drive_mirror IO, the coroutine will be switched back to main-thread to poll and process other events, like qmp request, then after the IO completed, coroutine will be switched back in main-loop process, right? Another question: while starting to migrate storage, will the unused sector be allocated and transferred? regarding the thin-provisioning qcow2 disk, will extra large IO requests be performed, and more data be transferred for the unallocated clusters? Thanks, Zhang Haoyu > Paolo