Skip to content

Virtio support for endian-curious guests.

Rusty Russell qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7virtio: allow byte swapping for vring and config accesshw/virtio/virtio.c include/hw/virtio/virtio-access.h+170 -1428 replies
2/7target-ppc: ppc64 targets can be either endian.configure target-ppc/misc_helper.c+9 -00 replies
3/7hw/net/virtio-net: use virtio wrappers to access headers.hw/net/virtio-net.c+8 -71 reply
4/7hw/net/virtio-balloon: use virtio wrappers to access page frame numbers.hw/virtio/virtio-balloon.c+2 -11 reply
5/7hw/block/virtio-blk: use virtio wrappers to access headers.hw/block/virtio-blk.c+18 -172 replies
6/7hw/scsi/virtio-scsi: use virtio wrappers to access headers.hw/scsi/virtio-scsi.c+17 -161 reply
7/7hw/char/virtio-serial-bus: use virtio wrappers to access headers.hw/char/virtio-serial-bus.c+18 -161 reply
7/7patch virtio-serial-biendian.patchhw/char/virtio-serial-bus.c+18 -160 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchAnthony Liguori
1/7
2/7
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] Virtio support for endian-curious guests.

Virtio is currently defined as "guest-endian", but that's a slippery concept when the target can change endian. In particular, virtio devices fail on little-endian powerpc 64.

Feedback welcome!
Rusty.

Rusty Russell (7):
virtio: allow byte swapping for vring and config access
target-ppc: ppc64 targets can be either endian. hw/net/virtio-net: use virtio wrappers to access headers. hw/net/virtio-balloon: use virtio wrappers to access page frame
numbers.
hw/block/virtio-blk: use virtio wrappers to access headers. hw/scsi/virtio-scsi: use virtio wrappers to access headers. hw/char/virtio-serial-bus: use virtio wrappers to access headers.

 configure                         |   1 +
 hw/block/virtio-blk.c             |  35 +++++-----
 hw/char/virtio-serial-bus.c       |  34 +++++-----
 hw/net/virtio-net.c               |  15 +++--
 hw/scsi/virtio-scsi.c             |  33 ++++-----
 hw/virtio/virtio-balloon.c        |   3 +-
 hw/virtio/virtio.c                |  46 +++++++++----
 include/hw/virtio/virtio-access.h | 138 ++++++++++++++++++++++++++++++++++++++
 target-ppc/misc_helper.c          |   8 +++
 9 files changed, 242 insertions(+), 71 deletions(-)
 create mode 100644 include/hw/virtio/virtio-access.h
Signature · 1 line
1.8.1.2