This series tries to rework cross-endian helpers for better clarity. It does not change behaviour, except perhaps patch 3/3 even if I could not measure any performance gain.
--- Greg Kurz (3): 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/virtio/vhost.c | 22 ++++++++++++++++++---- include/hw/virtio/virtio-access.h | 16 +++------------- 2 files changed, 21 insertions(+), 17 deletions(-)