powerpc: kvm: optimize "sc 1" as fast return
authorLiu Ping Fan <kernelfans@gmail.com>
Tue, 19 Nov 2013 06:12:48 +0000 (14:12 +0800)
committerAlexander Graf <agraf@suse.de>
Thu, 21 Nov 2013 13:56:45 +0000 (14:56 +0100)
commit27025a602cb9d8b0fa5162b465334ef059a503b6
treee3d750b573ada011b48143f2ae412ddf57bcbbdf
parent8a3caa6d74597c2a083f7c87f866891a0b12540b
powerpc: kvm: optimize "sc 1" as fast return

In some scene, e.g openstack CI, PR guest can trigger "sc 1" frequently,
this patch optimizes the path by directly delivering BOOK3S_INTERRUPT_SYSCALL
to HV guest, so powernv can return to HV guest without heavy exit, i.e,
no need to swap TLB, HTAB,.. etc

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S