From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 0/12] virtio_net perf patches Date: Mon, 11 Aug 2008 21:12:03 +0100 Message-ID: <1218485535-877-1-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail02.svc.cra.dublin.eircom.net ([159.134.118.18]:46814 "HELO mail02.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757543AbYHKUMd (ORCPT ); Mon, 11 Aug 2008 16:12:33 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi Avi, Here's the set of patches that I think make sense to apply. I've left out Anthony's zero-copy patch since I wasn't seeing a measurable difference with it, it's quite invasive and isn't safe with the "drop the global mutex during tapfd read()" patch. I left that mutex patch 'til last since you may still be nervous about concurrency issues and also the posix-timers kernel race that it triggers. Another change since the first round of patches is that it took a bit of ugly hackery to handle the case where IFF_VNET_HDR is supported and we're using e.g. e1000. Since it's difficult to only enable IFF_VNET_HDR when we're using virtio_net_hdr, I went with this approach. Lastly, I need to add a "vnet_hdr=on" param to "-net tap" so that we can know if the supplied tap fd has IFF_VNET_HDR enabled. There's no interface to query that on the fd right now, and even if I did cook up a patch it probably wouldn't make 2.6.27. Cheers, Mark.