Skip to content

virtio endian-ambivalent target fixes.

Rusty Russell qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7virtio_get_byteswap: function for endian-ambivalent targets using virtio.hw/virtio/virtio.c include/hw/virtio/virtio-access.h include/hw/virtio/virtio.h +2 more+148 -00 replies
2/7virtio: allow byte swapping for vring and config accesshw/virtio/virtio.c+14 -140 replies
3/7hw/net/virtio-net: use virtio wrappers to access headers.hw/net/virtio-net.c+8 -70 replies
4/7hw/net/virtio-balloon: use virtio wrappers to access page frame numbers.hw/virtio/virtio-balloon.c+2 -10 replies
5/7hw/block/virtio-blk: use virtio wrappers to access headers.hw/block/virtio-blk.c+18 -170 replies
6/7hw/scsi/virtio-scsi: use virtio wrappers to access headers.hw/scsi/virtio-scsi.c+17 -160 replies
7/7hw/char/virtio-serial-bus: use virtio wrappers to access headers.hw/char/virtio-serial-bus.c+18 -160 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnthony Liguori
SeriesR-b R-b R-b R-b R-b
1/7
2/7
3/7R-b
4/7R-b
5/7R-b
6/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 endian-ambivalent target fixes.

This is a re-transmit of the core of the virtio endian code. Since there seems to be some interest in ARM BE virtio, I've separated this from the direct problem I was solving: PowerPC LE.

Please apply!
Rusty.

Rusty Russell (7):
virtio_get_byteswap: function for endian-ambivalent targets using
virtio.
virtio: allow byte swapping for vring and config access 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.

 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                |  34 ++++++----
 include/hw/virtio/virtio-access.h | 133 ++++++++++++++++++++++++++++++++++++++
 include/hw/virtio/virtio.h        |   2 +
 stubs/Makefile.objs               |   1 +
 stubs/virtio_get_byteswap.c       |   6 ++
 10 files changed, 225 insertions(+), 71 deletions(-)
 create mode 100644 include/hw/virtio/virtio-access.h
 create mode 100644 stubs/virtio_get_byteswap.c
Signature · 1 line
1.8.1.2