From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddWes-0007NX-DK for qemu-devel@nongnu.org; Fri, 04 Aug 2017 03:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddWeo-0001aK-5x for qemu-devel@nongnu.org; Fri, 04 Aug 2017 03:04:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60216) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddWeo-0001Zc-0E for qemu-devel@nongnu.org; Fri, 04 Aug 2017 03:04:26 -0400 Date: Fri, 4 Aug 2017 15:04:19 +0800 From: Peter Xu Message-ID: <20170804070419.GI5561@pxdev.xzpeter.org> References: <1501229198-30588-1-git-send-email-peterx@redhat.com> <1501229198-30588-24-git-send-email-peterx@redhat.com> <20170803110540.GE2076@work-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170803110540.GE2076@work-vm> Subject: Re: [Qemu-devel] [RFC 23/29] migration: new cmd MIG_CMD_POSTCOPY_RESUME List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: qemu-devel@nongnu.org, Laurent Vivier , Alexey Perevalov , Juan Quintela , Andrea Arcangeli On Thu, Aug 03, 2017 at 12:05:41PM +0100, Dr. David Alan Gilbert wrote: [...] > > +static int loadvm_postcopy_handle_resume(MigrationIncomingState *mis) > > +{ > > + /* > > + * This means source VM is ready to resume the postcopy migration. > > + * It's time to switch state and release the fault thread to > > + * continue service page faults. > > + */ > > + migrate_set_state(&mis->state, MIGRATION_STATUS_POSTCOPY_RECOVER, > > + MIGRATION_STATUS_POSTCOPY_ACTIVE); > > + qemu_sem_post(&mis->postcopy_pause_sem_fault); > > Is it worth sanity checking that you were in RECOVER at this point? Yeah, it never hurts. Will do. -- Peter Xu