Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-08 Thread Alexey Kardashevskiy
On 09/08/2014 10:04 PM, Alexander Graf wrote: > > > On 08.09.14 02:06, Alexey Kardashevskiy wrote: >> On 09/08/2014 06:35 AM, Alexander Graf wrote: >>> >>> >>> On 06.09.14 04:49, Alexey Kardashevskiy wrote: At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since it does not

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-08 Thread Alexander Graf
On 08.09.14 02:06, Alexey Kardashevskiy wrote: > On 09/08/2014 06:35 AM, Alexander Graf wrote: >> >> >> On 06.09.14 04:49, Alexey Kardashevskiy wrote: >>> At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since >>> it does not parse BARs content and just provides transport, it should

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-07 Thread Alexey Kardashevskiy
On 09/08/2014 10:00 AM, Alexey Kardashevskiy wrote: > On 09/08/2014 02:06 AM, Greg Kurz wrote: >> On Sat, 6 Sep 2014 12:49:47 +1000 >> Alexey Kardashevskiy wrote: >> >>> At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since >>> it does not parse BARs content and just provides transp

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-07 Thread Alexey Kardashevskiy
On 09/08/2014 06:35 AM, Alexander Graf wrote: > > > On 06.09.14 04:49, Alexey Kardashevskiy wrote: >> At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since >> it does not parse BARs content and just provides transport, it should >> not do byte swaps, the guest does it anyway. That w

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-07 Thread Alexey Kardashevskiy
On 09/08/2014 02:06 AM, Greg Kurz wrote: > On Sat, 6 Sep 2014 12:49:47 +1000 > Alexey Kardashevskiy wrote: > >> At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since >> it does not parse BARs content and just provides transport, it should >> not do byte swaps, the guest does it any

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-07 Thread Alexander Graf
On 06.09.14 04:49, Alexey Kardashevskiy wrote: > At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since > it does not parse BARs content and just provides transport, it should > not do byte swaps, the guest does it anyway. That worked fine while > the host was big-endian and it does

Re: [Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-07 Thread Greg Kurz
On Sat, 6 Sep 2014 12:49:47 +1000 Alexey Kardashevskiy wrote: > At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since > it does not parse BARs content and just provides transport, it should > not do byte swaps, the guest does it anyway. That worked fine while > the host was big-end

[Qemu-devel] VFIO NATIVE_ENDIAN regions question

2014-09-05 Thread Alexey Kardashevskiy
At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since it does not parse BARs content and just provides transport, it should not do byte swaps, the guest does it anyway. That worked fine while the host was big-endian and it does not work when the host is little-endian. This happens bec