From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvkUT-0000vB-Uc for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:20:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvkUR-0006rW-Af for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:20:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvkUQ-0006rK-V4 for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:19:59 -0500 From: Juan Quintela In-Reply-To: <1446747083-18205-45-git-send-email-dgilbert@redhat.com> (David Alan Gilbert's message of "Thu, 5 Nov 2015 18:11:11 +0000") References: <1446747083-18205-1-git-send-email-dgilbert@redhat.com> <1446747083-18205-45-git-send-email-dgilbert@redhat.com> Date: Mon, 09 Nov 2015 12:19:55 +0100 Message-ID: <87k2prbesk.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v9 44/56] Postcopy: Use helpers to map pages during migration Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, 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, david@gibson.dropbear.id.au "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > In postcopy, the destination guest is running at the same time > as it's receiving pages; as we receive new pages we must put > them into the guests address space atomically to avoid a running > CPU accessing a partially written page. > > Use the helpers in postcopy-ram.c to map these pages. > > qemu_get_buffer_in_place is used to avoid a copy out of qemu_file > in the case that postcopy is going to do a copy anyway. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela