From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnJGw-0003jA-IT for qemu-devel@nongnu.org; Sat, 19 Apr 2008 16:02:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnJGt-0003ik-OH for qemu-devel@nongnu.org; Sat, 19 Apr 2008 16:02:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnJGt-0003ih-J7 for qemu-devel@nongnu.org; Sat, 19 Apr 2008 16:02:51 -0400 Received: from an-out-0708.google.com ([209.85.132.245]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnJGt-0003i0-7U for qemu-devel@nongnu.org; Sat, 19 Apr 2008 16:02:51 -0400 Received: by an-out-0708.google.com with SMTP id d26so353611and.130 for ; Sat, 19 Apr 2008 13:02:42 -0700 (PDT) Message-ID: <480A4FDA.3070706@codemonkey.ws> Date: Sat, 19 Apr 2008 15:02:34 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3) References: <1208297491-1287-1-git-send-email-aliguori@us.ibm.com> <4806596C.4090107@us.ibm.com> <4807ADA7.7000500@us.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Anthony Liguori , kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org, Marcelo Tosatti , Paul Brook , Aurelien Jarno Blue Swirl wrote: > On 4/17/08, Anthony Liguori wrote: > >> Yes, the vector version of packet receive is tough. I'll take a look at >> your patch. Basically, you need to associate a set of RX vectors with each >> VLANClientState and then when it comes time to deliver a packet to the VLAN, >> before calling fd_read, see if there is an RX vector available for the >> client. >> >> In the case of tap, I want to optimize further and do the initial readv() >> to one of the clients RX buffers and then copy that RX buffer to the rest of >> the clients if necessary. >> > > The vector versions should also help SLIRP to add IP and Ethernet > headers to the incoming packets. > Yeah, I'm hoping that with my posted linux-aio interface, I can add vector support since linux-aio has a proper asynchronous vector function. Are we happy with the DMA API? If so, we should commit it now so we can start adding proper vector interfaces for net/block. Regards, Anthony Liguori > I made an initial version of the vectored AIO SCSI with ESP. It does > not work, but I can see that just using the vectors won't give too > much extra performance, because at least initially the vector length > is 1. Collecting the statuses may be tricky. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > kvm-devel mailing list > kvm-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kvm-devel >