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 being

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 c...@fr.ibm.com 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

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

2013-10-07 Thread Alexander Graf
On 07.10.2013, at 16:23, Cedric Le Goater c...@fr.ibm.com wrote: 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

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 being

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 c...@fr.ibm.com 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

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

2013-10-07 Thread Alexander Graf
On 07.10.2013, at 16:23, Cedric Le Goater c...@fr.ibm.com wrote: 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

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

2013-10-04 Thread Alexander Graf
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 being emulated. This patch stores the last instruction in the

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

2013-10-04 Thread Aneesh Kumar K.V
Cédric Le Goater c...@fr.ibm.com 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 stores the last instruction in the endian

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

2013-10-04 Thread Alexander Graf
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 being emulated. This patch stores the last instruction in the

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

2013-10-04 Thread Aneesh Kumar K.V
Cédric Le Goater c...@fr.ibm.com 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 stores the last instruction in the endian

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

2013-10-03 Thread Cédric Le Goater
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 stores the last instruction in the endian order of the host, primarily doing a byte-swap if

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

2013-10-03 Thread Cédric Le Goater
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 stores the last instruction in the endian order of the host, primarily doing a byte-swap if