aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-08-12 05:34:21 -0400
committerAlexander Graf <agraf@suse.de>2012-10-05 17:38:44 -0400
commit0652eaaebea0995b3236e51dec727d62264f4248 (patch)
tree31c87156d9e61a6de5ba9578f95d1936951e66cf /arch/powerpc
parent706fb730cb4f9db2e3de33391475dd0616c2c935 (diff)
KVM: PPC: Book3S: PR: Indicate we're out of guest mode
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/book3s_pr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index b4ae11ec068f..9430a362e5a3 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -1152,6 +1152,7 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
1152#endif 1152#endif
1153 1153
1154out: 1154out:
1155 vcpu->mode = OUTSIDE_GUEST_MODE;
1155 preempt_enable(); 1156 preempt_enable();
1156 return ret; 1157 return ret;
1157} 1158}