From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWx8-0006nu-41 for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPWx7-0006Vj-2Y for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:43:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWx6-0006VW-Lu for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:43:04 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r39Bh4hH001591 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Apr 2013 07:43:04 -0400 Message-ID: <5163FEB8.9050007@redhat.com> Date: Tue, 09 Apr 2013 13:42:48 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1365420597-5506-1-git-send-email-pbonzini@redhat.com> <1365420597-5506-3-git-send-email-pbonzini@redhat.com> <87d2u4djcg.fsf@elfo.elfo> In-Reply-To: <87d2u4djcg.fsf@elfo.elfo> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] migration: use a single I/O operation when writev_buffer is not defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: kwolf@redhat.com, owasserm@redhat.com, qemu-devel@nongnu.org Il 09/04/2013 13:38, Juan Quintela ha scritto: > And this > > > > is not needed if we just put the code inside add_to_iovec() no? > > Users of add_to_iovec() should not care if we are using vritev or > put_buffer() right. I'm taking the opposite stance here. add_to_iovec() should not be called at all if using put_buffer. > and as a second note. Having qemu_put_buffer_async() calling > qemu_put_buffer() and qemu_put_buffer() calling qemu_put_buffer_async() > is ..... weird? Yes, in fact after this patch qemu_put_buffer() is not calling qemu_put_buffer_async() anymore. Paolo