From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvqQY-0007Gn-HJ for qemu-devel@nongnu.org; Mon, 09 Nov 2015 12:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvqQV-0007XI-QY for qemu-devel@nongnu.org; Mon, 09 Nov 2015 12:40:22 -0500 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:52918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvqQV-0007X0-GQ for qemu-devel@nongnu.org; Mon, 09 Nov 2015 12:40:19 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Nov 2015 17:40:18 -0000 From: Greg Kurz Date: Mon, 09 Nov 2015 18:40:13 +0100 Message-ID: <20151109172840.3075.48900.stgit@bahia.huguette.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/2] virtio-net/vhost-net: share cross-endian enablement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org Since QEMU 2.4.0, vhost-net uses the cross-endian support of TAP devices to fix vnet headers. In fact, virtio-net can do the same instead of hackily patching headers in virtio_net_hdr_swap(). This series moves the enablement of cross-endian support from vhost-net to virtio-net: both vhost and full emulation can now benefit from it. Of course we keep the current hack to fall back on when the backend doesn't support cross-endian. --- Greg Kurz (2): virtio-net: use the backend cross-endian capabilities Revert "vhost-net: tell tap backend about the vnet endianness" hw/net/vhost_net.c | 33 +------------------------- hw/net/virtio-net.c | 50 ++++++++++++++++++++++++++++++++++++++-- include/hw/virtio/virtio-net.h | 1 + 3 files changed, 50 insertions(+), 34 deletions(-)