From: Alexander Graf Date: Sun, 12 Aug 2012 09:34:21 +0000 (+0200) Subject: KVM: PPC: Book3S: PR: Indicate we're out of guest mode X-Git-Tag: next-20120925~30^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f9a7b8f4d0177239731a646fa65bed88f8ae9b4;p=karo-tx-linux.git 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 --- 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) #endif out: + vcpu->mode = OUTSIDE_GUEST_MODE; preempt_enable(); return ret; }