From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWejn-0007ea-1p for qemu-devel@nongnu.org; Wed, 16 Oct 2013 23:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWejh-0001E9-2v for qemu-devel@nongnu.org; Wed, 16 Oct 2013 23:59:03 -0400 Received: from ozlabs.org ([203.10.76.45]:36968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWejg-0001DT-Om for qemu-devel@nongnu.org; Wed, 16 Oct 2013 23:58:57 -0400 From: Rusty Russell Date: Thu, 17 Oct 2013 14:23:35 +1030 Message-Id: <1381982022-19291-1-git-send-email-rusty@rustcorp.com.au> Subject: [Qemu-devel] [PATCH 0/7] virtio endian-ambivalent target fixes. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc Zyngier , qemu-devel@nongnu.org Cc: Rusty Russell 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 -- 1.8.1.2