From: Alexander Graf Date: Sun, 12 Aug 2012 09:27:49 +0000 (+0200) Subject: KVM: PPC: Book3S: PR: Only do resched check once per exit X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c63ddcb4540db95e5a4223cfa8cdbe6efbd5e386;p=linux-beck.git KVM: PPC: Book3S: PR: Only do resched check once per exit Now that we use our generic exit helper, we can safely drop our previous kvm_resched that we used to trigger at the beginning of the exit handler function. Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 10f8217b8c38..2c268a15b20f 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -602,7 +602,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, trace_kvm_exit(exit_nr, vcpu); preempt_enable(); - kvm_resched(vcpu); + switch (exit_nr) { case BOOK3S_INTERRUPT_INST_STORAGE: {