On Mon, 19 Jan 2015 17:04:35 +0000 Stefan Hajnoczi <stefa...@redhat.com> wrote:
> In commit 0f5d1d2a49778863db54b4b1ac2dc008a8f21f11 ("virtio: memory accessors > for endian-ambivalent targets") endian-aware memory accessors were added to > support bi-endian targets like recent ppc64 systems. > > The dataplane vring.c code does not use these accessors and is therefore > unable > to emulate virtio devices when the endianness differs between the device and > host. > > These patches modify vring.c to use the endian-aware accessors. I had modified the accesses in vring.c to consider endianness for virtio-1 support as well. I wonder whether we can find some common ground there? It's been a while since I have had time to work on this, but searching for "dataplane: allow virtio-1 devices" should lead you to the relevant patch.