Re: [Qemu-devel] [PATCH 1/2] virtio-pci: Fix endianness of virtio config

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 01:08 +0100, Alexander Graf wrote: > On 11.01.2012, at 01:07, Anthony Liguori wrote: > > > On 01/10/2012 06:07 PM, Alexander Graf wrote: > >> From: Benjamin Herrenschmidt > >> > >> The virtio config area in PIO space is a bit special. The initial > >> header is little endian

Re: [Qemu-devel] [PATCH 1/2] virtio-pci: Fix endianness of virtio config

2012-01-11 Thread Anthony Liguori
On 01/10/2012 06:07 PM, Alexander Graf wrote: From: Benjamin Herrenschmidt The virtio config area in PIO space is a bit special. The initial header is little endian but the rest (device specific) is guest native endian. The PIO accessors for PCI on machines that don't have native IO ports assum

Re: [Qemu-devel] [PATCH 1/2] virtio-pci: Fix endianness of virtio config

2012-01-10 Thread Alexander Graf
On 11.01.2012, at 01:07, Anthony Liguori wrote: > On 01/10/2012 06:07 PM, Alexander Graf wrote: >> From: Benjamin Herrenschmidt >> >> The virtio config area in PIO space is a bit special. The initial >> header is little endian but the rest (device specific) is guest >> native endian. >> >> The

[Qemu-devel] [PATCH 1/2] virtio-pci: Fix endianness of virtio config

2012-01-10 Thread Alexander Graf
From: Benjamin Herrenschmidt The virtio config area in PIO space is a bit special. The initial header is little endian but the rest (device specific) is guest native endian. The PIO accessors for PCI on machines that don't have native IO ports assume that all PIO is little endian, which works fi