Re: [Qemu-devel] [PATCH] target-ppc: ppc64 target's virtio can be either endian. (v3)

2014-01-20 Thread Alexander Graf
On 17.01.2014, at 14:52, Greg Kurz gk...@linux.vnet.ibm.com wrote: We base it on the OS endian, as reflected by the endianness of the interrupt vectors (handled through the ILE bit in the LPCR register). This patch implements virtio_get_byteswap() over LPCR. Using first_cpu to fetch the

[Qemu-devel] [PATCH] target-ppc: ppc64 target's virtio can be either endian. (v3)

2014-01-17 Thread Greg Kurz
We base it on the OS endian, as reflected by the endianness of the interrupt vectors (handled through the ILE bit in the LPCR register). This patch implements virtio_get_byteswap() over LPCR. Using first_cpu to fetch the registers from KVM may look arbitrary and awkward, but it is okay because