From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ND1WC-0002Ef-0b for qemu-devel@nongnu.org; Tue, 24 Nov 2009 14:57:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ND1W7-00026Y-8O for qemu-devel@nongnu.org; Tue, 24 Nov 2009 14:57:43 -0500 Received: from [199.232.76.173] (port=42010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND1W6-00026O-UI for qemu-devel@nongnu.org; Tue, 24 Nov 2009 14:57:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49817) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ND1W6-0000vp-HV for qemu-devel@nongnu.org; Tue, 24 Nov 2009 14:57:38 -0500 Date: Tue, 24 Nov 2009 21:54:58 +0200 From: "Michael S. Tsirkin" Message-ID: <20091124195458.GA4290@redhat.com> References: <20091124194502.GA4250@redhat.com> <4B0C3901.5010100@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B0C3901.5010100@linux.vnet.ibm.com> Subject: [Qemu-devel] Re: [PATCH] qemu/virtio-net: remove wrong s/g layout assumptions List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Shirley Ma , Rusty Russell , qemu-devel@nongnu.org On Tue, Nov 24, 2009 at 01:50:25PM -0600, Anthony Liguori wrote: > Michael S. Tsirkin wrote: >> virtio net currently assumes that the first s/g element it gets is >> always virtio net header. This is wrong. >> There should be no assumption on sg boundaries. For example, the guest >> should be able to put the virtio_net_hdr in the front of the skbuf data >> if there is room. Get rid of this assumption, properly consume space >> from iovec, always. >> > > Practically speaking, we ought to advertise a feature bit to let a > kernel know that we are no longer broken. > > Otherwise, there are a ton of old userspaces that will break with new > guests. My thinking is, first of all let's fix the bug. We'll add a feature bit when or if some guest wants to use it. Maybe this will be 100 years down the road when all old userspace has died a natural death :) Makes sense? > -- > Regards, > > Anthony Liguori