From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH 0/3] virtio-net: inline header support Date: Wed, 03 Oct 2012 16:40:06 +0930 Message-ID: <87sj9w2fqp.fsf@rustcorp.com.au> References: <87vces2gxq.fsf@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sasha Levin , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, avi@redhat.com, kvm@vger.kernel.org, netdev@vger.kernel.org To: "Michael S. Tsirkin" , Thomas Lendacky Return-path: Received: from ozlabs.org ([203.10.76.45]:33827 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756707Ab2JCW1p (ORCPT ); Wed, 3 Oct 2012 18:27:45 -0400 In-Reply-To: <87vces2gxq.fsf@rustcorp.com.au> Sender: kvm-owner@vger.kernel.org List-ID: Rusty Russell writes: > "Michael S. Tsirkin" writes: > >> Thinking about Sasha's patches, we can reduce ring usage >> for virtio net small packets dramatically if we put >> virtio net header inline with the data. >> This can be done for free in case guest net stack allocated >> extra head room for the packet, and I don't see >> why would this have any downsides. > > I've been wanting to do this for the longest time... but... > >> Even though with my recent patches qemu >> no longer requires header to be the first s/g element, Breaks for me; see why I hate bug features? Now we'd need another one... qemu-system-i386: virtio: trying to map MMIO memory Please try my patch. Cheers, Rusty.