Re: [PATCH] powerpc: kvm: optimize sc 0 as fast return

2013-11-08 Thread Liu ping fan
On Fri, Nov 8, 2013 at 12:19 PM, Liu ping fan kernelf...@gmail.com wrote: On Fri, Nov 8, 2013 at 11:10 AM, Alexander Graf ag...@suse.de wrote: On 08.11.2013, at 03:44, Liu Ping Fan kernelf...@gmail.com wrote: syscall is a very common behavior inside guest, and this patch optimizes the path

Re: [PATCH] powerpc: kvm: optimize sc 0 as fast return

2013-11-08 Thread Paul Mackerras
On Fri, Nov 08, 2013 at 10:44:16AM +0800, Liu Ping Fan wrote: syscall is a very common behavior inside guest, and this patch optimizes the path for the emulation of BOOK3S_INTERRUPT_SYSCALL, so hypervisor can return to guest without heavy exit, i.e, no need to swap TLB, HTAB,.. etc Many

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 c...@fr.ibm.com wrote: +/* + * Compare endian order of host and guest to determine whether we need + * to byteswap or not + */ static

[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 c...@fr.ibm.com --- arch/powerpc/include/asm/kvm_book3s.h |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/kvm_book3s.h