From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygads-0007Vr-Ln for qemu-devel@nongnu.org; Fri, 10 Apr 2015 11:14:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ygado-00011x-DT for qemu-devel@nongnu.org; Fri, 10 Apr 2015 11:14:48 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:35289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygado-00011S-3Q for qemu-devel@nongnu.org; Fri, 10 Apr 2015 11:14:44 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Apr 2015 16:14:41 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 6883617D805D for ; Fri, 10 Apr 2015 16:15:13 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3AFEdZ81507820 for ; Fri, 10 Apr 2015 15:14:39 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3AFEcms014594 for ; Fri, 10 Apr 2015 09:14:38 -0600 Date: Fri, 10 Apr 2015 17:14:34 +0200 From: Greg Kurz Message-ID: <20150410171434.20f0b91f@bahia.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [vhost-net] handle_tx: extract data from vq when !zcopy_used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Catalin Vasile Cc: qemu-devel@nongnu.org On Fri, 10 Apr 2015 15:58:33 +0300 Catalin Vasile wrote: > I'm really confused. > Where does vhost-net (handle_tx) actually extract data from vq when zero > copy is not used? > I just see it popping a vq element, but not actually copying anything from > there. vhost-net just passes the pointers to the socket, whether zero copy is used or not: err = sock->ops->sendmsg(NULL, sock, &msg, len); BTW, I think virtualization@lists.linux-foundation.org would have been more appropriate since this isn't a about QEMU. Cheers. -- Greg