From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKtL6-000630-E5 for qemu-devel@nongnu.org; Wed, 27 Mar 2013 12:36:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKtL4-0002os-OP for qemu-devel@nongnu.org; Wed, 27 Mar 2013 12:36:40 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:60760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKtL4-0002on-IG for qemu-devel@nongnu.org; Wed, 27 Mar 2013 12:36:38 -0400 Received: by mail-ee0-f45.google.com with SMTP id b57so4553280eek.32 for ; Wed, 27 Mar 2013 09:36:37 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 27 Mar 2013 17:36:26 +0100 Message-Id: <1364402192-18169-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] migration: followups for writev patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: owasserm@redhat.com, quintela@redhat.com This series fixes a few small problems in Orit's writev patches: 1) socket_put_buffer is not needed anymore and can be dropped (patch 1); 2) sendmsg could do a partial write even for a blocking socket, in case it is interrupted by a signal. This should not happen for migration, but it is relatively easy to fix in iov_send_recv (patches 2 to 5); 3) recent libvirt will always use fd migration, and thus will not benefit from the writev speedups. fd migration also uses FILE*, which incurs an extra copy. Patch 6 fixes both issues. Thanks, Paolo Paolo Bonzini (6): qemu-file: drop socket_put_buffer iov: reorganize iov_send_recv, part 1 iov: reorganize iov_send_recv, part 2 iov: reorganize iov_send_recv, part 3 iov: handle partial writes from sendmsg and recvmsg qemu-file: do not use stdio for qemu_fdopen savevm.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++------------- util/iov.c | 104 ++++++++++++++++++++++++++++++++------------------------ 2 files changed, 148 insertions(+), 69 deletions(-) -- 1.8.1.4