From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhJJe-0003He-4l for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhJJX-0002Sq-Va for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:24:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhJJX-0002Rp-OK for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:24:31 -0400 Date: Thu, 23 Oct 2014 15:24:13 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20141023142412.GE7659@work-vm> References: <1412358473-31398-1-git-send-email-dgilbert@redhat.com> <1412358473-31398-48-git-send-email-dgilbert@redhat.com> <54303323.1010703@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54303323.1010703@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 47/47] End of migration for postcopy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, lilei@linux.vnet.ibm.com, quintela@redhat.com, cristian.klein@cs.umu.se, qemu-devel@nongnu.org, amit.shah@redhat.com, yanghy@cn.fujitsu.com * Paolo Bonzini (pbonzini@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > + mis->postcopy_ram_state); > > + if (mis->postcopy_ram_state == POSTCOPY_RAM_INCOMING_ADVISE) { > > + /* > > + * Where a migration had postcopy enabled (and thus went to advise) > > + * but managed to complete within the precopy period > > + */ > > + postcopy_ram_incoming_cleanup(mis); > > + } else { > > + if ((ret >= 0) && > > + (mis->postcopy_ram_state > POSTCOPY_RAM_INCOMING_ADVISE)) { > > + /* > > + * Postcopy was started, cleanup should happen at the end of the > > + * postcopy thread. > > + */ > > + DPRINTF("process_incoming_migration_co: exiting main branch"); > > + return; > > + } > > Extra parentheses and extra nesting. Done. > > Paolo -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK