qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/3] virtio-net/vhost-net: share cross-endian enablement
@ 2015-11-18 16:23 Greg Kurz
  2015-11-18 16:24 ` [Qemu-devel] [PATCH v3 1/3] virtio-net: use the backend cross-endian capabilities Greg Kurz
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Greg Kurz @ 2015-11-18 16:23 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: Cornelia Huck, qemu-devel

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 (3):
      virtio-net: use the backend cross-endian capabilities
      Revert "vhost-net: tell tap backend about the vnet endianness"
      virtio: drop the virtio_needs_swap() helper


 hw/net/vhost_net.c                |   33 +------------------------------
 hw/net/virtio-net.c               |   40 +++++++++++++++++++++++++++++++++++--
 include/hw/virtio/virtio-access.h |    9 --------
 include/hw/virtio/virtio-net.h    |    1 +
 4 files changed, 40 insertions(+), 43 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-17  8:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 16:23 [Qemu-devel] [PATCH v3 0/3] virtio-net/vhost-net: share cross-endian enablement Greg Kurz
2015-11-18 16:24 ` [Qemu-devel] [PATCH v3 1/3] virtio-net: use the backend cross-endian capabilities Greg Kurz
2015-11-18 16:24 ` [Qemu-devel] [PATCH v3 2/3] Revert "vhost-net: tell tap backend about the vnet endianness" Greg Kurz
2015-11-18 16:24 ` [Qemu-devel] [PATCH v3 3/3] virtio: drop the virtio_needs_swap() helper Greg Kurz
2015-11-18 20:48 ` [Qemu-devel] [PATCH v3 0/3] virtio-net/vhost-net: share cross-endian enablement Michael S. Tsirkin
2015-11-18 21:46   ` Greg Kurz
2015-12-17  8:02     ` Greg Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).