Re: [PATCH v3 26/41] vhost: virtio 1.0 endian-ness support

2014-11-24 Thread Cedric Le Goater
Hi Michael, Do you have a tree from where I could pull these patches ? Thanks, C. On 11/24/2014 12:54 PM, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > drivers/vhost/vhost.c | 93 > +++ > 1 file changed, 56 insertions(+

Re: [RFC PATCH 0/4] vhost_net: support for cross endian guests

2014-11-04 Thread Cedric Le Goater
On 11/03/2014 05:23 PM, Michael S. Tsirkin wrote: > On Wed, Oct 29, 2014 at 09:38:41AM +0100, Cédric Le Goater wrote: >> This patchset adds a VHOST_VRING_F_BYTESWAP flag to inform the host >> to byteswap data of the vring when the guest and the host have a >> different endian order. The flag is s

Re: [PATCH v7] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-09 Thread Cedric Le Goater
On 01/09/2014 11:17 AM, Alexander Graf wrote: > > On 09.01.2014, at 11:02, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian order, >> or more generally in a different endian order of the ho

Re: [PATCH v5 3/6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Cedric Le Goater
On 01/08/2014 06:34 PM, Alexander Graf wrote: >>> if (kvmppc_is_bigendian(vcpu)) { >>> /* Default endianness is "big endian". */ >>> is_bigendian = is_default_endian; >>> } else { >>> /* Default endianness is "little endian". */ >>> is_bigendian = !is_default_endian; >>> } >>> >

Re: [PATCH v5 3/6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Cedric Le Goater
On 01/02/2014 09:22 PM, Alexander Graf wrote: > > On 05.11.2013, at 18:22, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before being

Re: [PATCH v5 2/6] KVM: PPC: Book3S: add helper routines to detect endian

2014-01-08 Thread Cedric Le Goater
Hi Alex, On 01/02/2014 09:05 PM, Alexander Graf wrote: > > On 05.11.2013, at 18:22, Cédric Le Goater wrote: > >> They will be used to decide whether to byte-swap or not. When Little >> Endian host kernels come, these routines will need to be changed >> accordingly. >> >> Signed-off-by: Cédric L

[PATCH v5.1 4/6] KVM: PPC: Book3S: modify kvmppc_need_byteswap() for little endian host

2013-11-08 Thread Cedric Le Goater
If the host has the same endian order as the guest, there is no need to byte-swap. Signed-off-by: Cédric Le Goater --- arch/powerpc/include/asm/kvm_book3s.h |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h

Re: [PATCH v2 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-11-08 Thread Cedric Le Goater
On 11/06/2013 06:55 AM, Paul Mackerras wrote: > On Tue, Nov 05, 2013 at 02:01:14PM +0100, Alexander Graf wrote: >> >> On 05.11.2013, at 13:28, Cedric Le Goater wrote: >> >>> +/* >>> + * Compare endian order of host and guest to determine whe

Re: [PATCH v2 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-11-05 Thread Cedric Le Goater
On 11/04/2013 12:44 PM, Alexander Graf wrote: > > On 10.10.2013, at 12:16, Paul Mackerras wrote: > >> On Wed, Oct 09, 2013 at 10:29:53AM +0200, Alexander Graf wrote: >>> >>> >>> Am 09.10.2013 um 07:59 schrieb Paul Mackerras : >>> On Wed, Oct 09, 2013 at 01:46:29AM +0200, Alexander Graf wrot

Re: [PATCH v2 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-09 Thread Cedric Le Goater
On 10/09/2013 10:29 AM, Alexander Graf wrote: > > > Am 09.10.2013 um 07:59 schrieb Paul Mackerras : > >> On Wed, Oct 09, 2013 at 01:46:29AM +0200, Alexander Graf wrote: >>> >>> >>> Am 09.10.2013 um 01:31 schrieb Paul Mackerras : >>> True, until we get to POWER8 with its split little-endian

Re: [PATCH v3 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-08 Thread Cedric Le Goater
On 10/08/2013 05:36 PM, Alexander Graf wrote: > > On 08.10.2013, at 17:31, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before being em

Re: [PATCH v2 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-08 Thread Cedric Le Goater
On 10/08/2013 04:25 PM, Alexander Graf wrote: > > On 08.10.2013, at 16:12, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before being em

Re: [PATCH 3/3] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-08 Thread Cedric Le Goater
On 10/08/2013 01:22 PM, Paul Mackerras wrote: > On Mon, Oct 07, 2013 at 04:27:47PM +0200, Cédric Le Goater wrote: >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped befor

Re: [RFC PATCH] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-07 Thread Cedric Le Goater
On 10/04/2013 03:48 PM, Aneesh Kumar K.V wrote: > Cédric Le Goater writes: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before being emulated. >> >> This patch

Re: [RFC PATCH] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2013-10-07 Thread Cedric Le Goater
Hi Alex, On 10/04/2013 02:50 PM, Alexander Graf wrote: > > On 03.10.2013, at 13:03, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before