Received: from eggs.gnu.org ([2001:4830:134:3::10]:51411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP6Dx-0003ZJ-C7 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 06:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP6Dt-0007Z3-6t for qemu-devel@nongnu.org; Mon, 18 Jul 2016 06:56:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP6Dt-0007Yj-1k for qemu-devel@nongnu.org; Mon, 18 Jul 2016 06:56:29 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BF3CE7F36F for ; Mon, 18 Jul 2016 10:56:27 +0000 (UTC) Date: Mon, 18 Jul 2016 16:26:25 +0530 From: Amit Shah Message-ID: <20160718105625.GB26110@grmbl.mre> References: <1468601086-32117-1-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1468601086-32117-1-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH] migration: set state to post-migrate on failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, quintela@redhat.com On (Fri) 15 Jul 2016 [17:44:46], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > If a migration fails/is cancelled during the postcopy stage we currently > end up with the runstate as finish-migrate, where it should be post-migrate. > There's a small window in precopy where I think the same thing can > happen, but I've never seen it. > > It rarely matters; the only postcopy case is if you restart a migration, which > again is a case that rarely matters in postcopy because it's only > safe to restart the migration if you know the destination hasn't > been running (which you might if you started the destination with -S > and hadn't got around to 'c' ing it before the postcopy failed). > Even then it's a small window but potentially you could hit if > there's a problem loading the devices on the destination. > > This corresponds to: > https://bugzilla.redhat.com/show_bug.cgi?id=1355683 > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Amit