From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqgYI-0005OP-FV for qemu-devel@nongnu.org; Mon, 26 Oct 2015 08:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqgYD-0005f3-FU for qemu-devel@nongnu.org; Mon, 26 Oct 2015 08:07:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqgYD-0005eo-Ac for qemu-devel@nongnu.org; Mon, 26 Oct 2015 08:06:57 -0400 Date: Mon, 26 Oct 2015 12:06:51 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20151026120650.GC2500@work-vm> References: <1443515898-3594-1-git-send-email-dgilbert@redhat.com> <1443515898-3594-22-git-send-email-dgilbert@redhat.com> <87bnbtvkon.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bnbtvkon.fsf@neno.neno> Subject: Re: [Qemu-devel] [PATCH v8 21/54] Return path: Source handling of return path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: aarcange@redhat.com, liang.z.li@intel.com, qemu-devel@nongnu.org, luis@cs.umu.se, bharata@linux.vnet.ibm.com, amit.shah@redhat.com, pbonzini@redhat.com * Juan Quintela (quintela@redhat.com) wrote: > "Dr. David Alan Gilbert (git)" wrote: > > From: "Dr. David Alan Gilbert" > > > > Open a return path, and handle messages that are received upon it. > > > > Signed-off-by: Dr. David Alan Gilbert > > Reviewed-by: Juan Quintela > > > +/* > > + * Return true if we're already in the middle of a migration > > + * (i.e. any of the active or setup states) > > + */ > > +static bool migration_is_active(MigrationState *ms) > > +{ > > + switch (ms->state) { > > + case MIGRATION_STATUS_ACTIVE: > > + case MIGRATION_STATUS_SETUP: > > + return true; > > + > > + default: > > + return false; > > + > > + } > > +} > > + > > > If you have to resend, you can split this bit, and update users around. Done; and renamed to migration_is_setup_or_active. Dave -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK