Received: from eggs.gnu.org ([2001:4830:134:3::10]:58331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d31MV-00053J-6q for qemu-devel@nongnu.org; Tue, 25 Apr 2017 10:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d31MQ-00018X-HN for qemu-devel@nongnu.org; Tue, 25 Apr 2017 10:22:39 -0400 References: <20170225193155.447462-1-vsementsov@virtuozzo.com> <20170225193155.447462-4-vsementsov@virtuozzo.com> <20170307095323.GB5871@noname.str.redhat.com> <20170328105544.GE2509@work-vm> <20170328110900.GB11725@noname.redhat.com> <20170328111315.GF2509@work-vm> <20170328120900.GC11725@noname.redhat.com> <4ed9821c-d19e-70fe-c7e5-fc89756b59f5@virtuozzo.com> <09db3476-b1e4-fa80-6d83-d5da0a06bdfc@redhat.com> <20170329152941.GC2501@work-vm> From: Vladimir Sementsov-Ogievskiy Message-ID: <8d98b8bd-41d3-2bcb-ccee-3e5bfc3f37a9@virtuozzo.com> Date: Tue, 25 Apr 2017 17:22:12 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] ping Re: [PATCH 3/4] savevm: fix savevm after migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "Dr. David Alan Gilbert" Cc: Kevin Wolf , qemu-block@nongnu.org, qemu-devel@nongnu.org, armbru@redhat.com, eblake@redhat.com, famz@redhat.com, stefanha@redhat.com, quintela@redhat.com, mreitz@redhat.com, peter.maydell@linaro.org, den@openvz.org, jsnow@redhat.com, lirans@il.ibm.com 29.03.2017 18:53, Paolo Bonzini wrote: > > On 29/03/2017 17:29, Dr. David Alan Gilbert wrote: >>>> 'abort' is not very good too I think. migration is completed, nothing to >>>> abort.. (may be successful migration to file for suspend, some kind of >>>> vm cloning, etc) >>> There is already migrate_cancel. Does it make sense to make it >>> reactivate fds if migration is completed? >> It's potentially racy to do that. >> Imagine if your migration is almost finished and you issue a migrate_cancel, >> what happens? >> Maybe it cancelled it. >> Maybe it just completed in time - and you really better not be accessing >> the disks on the source unless you're sure the destination isn't running. > If you want to avoid races, you probably have to use -S anyway on the > destination and do more handshaking between source and destination. But > yes, just to be safe it'd be better to add a new flag (-f for HMP, > 'cancel-completed-migration':true for QMP or something like that). > > Paolo Looks like we haven't final conclusion on this (solve problems, noted in patches 2 and 3). Are someone working on this now? -- Best regards, Vladimir