From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ1VT-0007OA-A4 for qemu-devel@nongnu.org; Wed, 04 Feb 2015 10:04:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ1VQ-0005UQ-0O for qemu-devel@nongnu.org; Wed, 04 Feb 2015 10:04:43 -0500 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:34127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ1VP-0005T8-Qm for qemu-devel@nongnu.org; Wed, 04 Feb 2015 10:04:39 -0500 Received: by mail-wi0-f180.google.com with SMTP id h11so4261918wiw.1 for ; Wed, 04 Feb 2015 07:04:38 -0800 (PST) Sender: Paolo Bonzini Message-ID: <54D23501.5020200@redhat.com> Date: Wed, 04 Feb 2015 16:04:33 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20150204113229.GN3032@redhat.com> <54D213E0.8090408@redhat.com> <20150204130041.GQ3032@redhat.com> <54D221BC.50008@redhat.com> <20150204140820.GS3032@redhat.com> <54D22B5A.5020904@redhat.com> <20150204143452.GV3032@redhat.com> In-Reply-To: <20150204143452.GV3032@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] RFC: Universal encryption on QEMU I/O channels List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org On 04/02/2015 15:34, Daniel P. Berrange wrote: > > GIO doesn't provide writev either, so it's not a good match for > > non-encrypted migration, which really tries hard to do no copies in > > userspace. > > Ok, maybe RDMA will still need QEMUFile, but for non-encrypted TCP > I'd hope to be able to achieve zero-copy with the new API too - it > would certainly be my intention/goal. For GIO/GIOChannel, you'd have to choose between zerocopy and many syscalls, or one copy and few syscalls. Since every page has two iov entries, one of which is just 8 bytes, one copy and few syscalls is probably faster---but still only half the speed of writev. Paolo