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 not do byte

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 parse BARs content

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 a...@ozlabs.ru 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

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 not

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 a...@ozlabs.ru 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

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 worked

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 a...@ozlabs.ru wrote: At the moment VFIO's BARs are NATIVE_ENDIAN. The idea is that since it does not parse BARs content and just provides

[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