Skip to content

Commit

Permalink
KVM: PPC: BookE: Drop redundant vcpu->mode set
Browse files Browse the repository at this point in the history
We only need to set vcpu->mode to outside once.

Signed-off-by: Alexander Graf <agraf@suse.de>
  • Loading branch information
Alexander Graf committed Oct 5, 2012
1 parent 9b0cb3c commit e85ad38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/kvm/booke.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,6 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
#endif

kvm_guest_exit();
vcpu->mode = OUTSIDE_GUEST_MODE;
smp_wmb();

out:
vcpu->mode = OUTSIDE_GUEST_MODE;
Expand Down

0 comments on commit e85ad38

Please sign in to comment.