Received: from eggs.gnu.org ([2001:4830:134:3::10]:56225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axuKn-0003Ck-GL for qemu-devel@nongnu.org; Wed, 04 May 2016 06:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axuKc-00073w-00 for qemu-devel@nongnu.org; Wed, 04 May 2016 06:47:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axuKb-00071A-RY for qemu-devel@nongnu.org; Wed, 04 May 2016 06:47:01 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8F55E3B754 for ; Wed, 4 May 2016 10:46:50 +0000 (UTC) From: Juan Quintela In-Reply-To: <1461751518-12128-5-git-send-email-berrange@redhat.com> (Daniel P. Berrange's message of "Wed, 27 Apr 2016 11:04:54 +0100") References: <1461751518-12128-1-git-send-email-berrange@redhat.com> <1461751518-12128-5-git-send-email-berrange@redhat.com> Reply-To: quintela@redhat.com Date: Wed, 04 May 2016 12:46:47 +0200 Message-ID: <87oa8mgkx4.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v6 for-2.7 04/28] migration: ensure qemu_fflush() always writes full data amount List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Amit Shah "Daniel P. Berrange" wrote: > The QEMUFile writev_buffer / put_buffer functions are expected > to write out the full set of requested data, blocking until > complete. The qemu_fflush() caller does not expect to deal with > partial writes. Clarify the function comments and add a sanity > check to the code to catch mistaken implementations. > > Reviewed-by: Dr. David Alan Gilbert > Signed-off-by: Daniel P. Berrange Reviewed-by: Juan Quintela