From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbstY-0000cI-07 for qemu-devel@nongnu.org; Sat, 28 Mar 2015 11:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbstT-0006kB-1u for qemu-devel@nongnu.org; Sat, 28 Mar 2015 11:43:31 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:35283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbstS-0006k1-RF for qemu-devel@nongnu.org; Sat, 28 Mar 2015 11:43:26 -0400 Received: by wgdm6 with SMTP id m6so128244146wgd.2 for ; Sat, 28 Mar 2015 08:43:26 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5516CC19.7080004@redhat.com> Date: Sat, 28 Mar 2015 16:43:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1424883128-9841-1-git-send-email-dgilbert@redhat.com> <1424883128-9841-18-git-send-email-dgilbert@redhat.com> In-Reply-To: <1424883128-9841-18-git-send-email-dgilbert@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 17/45] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" , qemu-devel@nongnu.org Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, quintela@redhat.com, amit.shah@redhat.com, yanghy@cn.fujitsu.com, david@gibson.dropbear.id.au On 25/02/2015 17:51, Dr. David Alan Gilbert (git) wrote: > +PostcopyState postcopy_state_get(MigrationIncomingState *mis) > +{ > + return atomic_fetch_add(&mis->postcopy_state, 0); > +} > + > +/* Set the state and return the old state */ > +PostcopyState postcopy_state_set(MigrationIncomingState *mis, > + PostcopyState new_state) > +{ > + return atomic_xchg(&mis->postcopy_state, new_state); > +} Which are the (multiple) threads are calling these functions? Paolo