This series brings some improvements to the cross-endian support in the
virtio and vhost code:
- use qemu_set_vnet_be() and qemu_set_vnet_le() directly from virtio-net,
so that backend cross-endian capabilities benefit to both emulated and
vhost accelerated devices
- optimize virtio_access_is_big_endian() for little-endian targets
- various cleanups
This v2 addresses Laurent Vivier's comments.
---
Greg Kurz (5):
virtio-net: use the backend cross-endian capabilities
Revert "vhost-net: tell tap backend about the vnet endianness"
virtio: move cross-endian helper to vhost
vhost: move virtio 1.0 check to cross-endian helper
virtio: optimize virtio_access_is_big_endian() for little-endian targets
hw/net/vhost_net.c | 33 +------------------------
hw/net/virtio-net.c | 49 +++++++++++++++++++++++++++++++++++--
hw/virtio/vhost.c | 22 ++++++++++++++---
include/hw/virtio/virtio-access.h | 28 ++-------------------
include/hw/virtio/virtio-net.h | 1 +
5 files changed, 70 insertions(+), 63 deletions(-)