Skip to content

vhost_net: support for cross endian guests

Greg Kurz kvm lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vhost: add VHOST_VRING_F_LEGACY_BIG_ENDIAN flagdrivers/vhost/vhost.c drivers/vhost/vhost.h include/uapi/linux/vhost.h+10 -12 replies
2/3vhost: add support for legacy virtiodrivers/vhost/vhost.h+14 -62 replies
2/3vhost: add support for legacy virtiodrivers/vhost/vhost.h+14 -60 replies
3/3vhost_net: fix virtio_net header endiannessdrivers/vhost/net.c+26 -61 reply
3/3vhost_net: fix virtio_net header endiannessdrivers/vhost/net.c+26 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] vhost_net: support for cross endian guests

Hi,

This patchset allows vhost_net to be used with legacy virtio when guest and host have a different endianness. It is based on previous work by Cédric Le Goater:

https://www.mail-archive.com/[email protected]/msg09848.html

As suggested by MST:
- the API now asks for a specific format (big endian) instead of the hint whether byteswap is needed or not (patch 1)
- rebased on top of the virtio-1 accessors (patch 2)

Patch 3 is a separate fix: I think it is also valid for virtio-1.

Please comment.

---

Greg Kurz (3):
vhost: add VHOST_VRING_F_LEGACY_BIG_ENDIAN flag
vhost: add support for legacy virtio
vhost_net: fix virtio_net header endianness

 drivers/vhost/net.c        |   32 ++++++++++++++++++++++++++------
 drivers/vhost/vhost.c      |    6 +++++-
 drivers/vhost/vhost.h      |   23 +++++++++++++++++------
 include/uapi/linux/vhost.h |    2 ++
 4 files changed, 50 insertions(+), 13 deletions(-)

--
Greg