qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/2] virtio-net/vhost-net: share cross-endian ena


From: Greg Kurz
Subject: [Qemu-devel] [PATCH v2 0/2] virtio-net/vhost-net: share cross-endian enablement
Date: Mon, 09 Nov 2015 18:40:13 +0100
User-agent: StGit/0.17.1-dirty

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(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]