Skip to content

Commit

Permalink
KVM: PPC: Book3S: PR: Indicate we're out of guest mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Graf committed Oct 5, 2012
1 parent 706fb73 commit 0652eaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kvm/book3s_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0652eaa

Please sign in to comment.