]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: Book3S: PR: Indicate we're out of guest mode
authorAlexander Graf <agraf@suse.de>
Sun, 12 Aug 2012 09:34:21 +0000 (11:34 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Sep 2012 14:26:05 +0000 (16:26 +0200)
When going out of guest mode, indicate that we are in vcpu->mode. That way
requests from other CPUs don't needlessly need to kick us to process them,
because it'll just happen next time we enter the guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_pr.c

index b4ae11ec068f0319b5fb1b5c0f1d29224e0e0095..9430a362e5a3c5e544c4ce8c3adfb4b72698c127 100644 (file)
@@ -1152,6 +1152,7 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
 #endif
 
 out:
+       vcpu->mode = OUTSIDE_GUEST_MODE;
        preempt_enable();
        return ret;
 }