]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: BookE: Drop redundant vcpu->mode set
authorAlexander Graf <agraf@suse.de>
Sun, 12 Aug 2012 09:13:25 +0000 (11:13 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 24 Sep 2012 12:50:29 +0000 (14:50 +0200)
We only need to set vcpu->mode to outside once.

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

index 4652e0bfa781da9bf038b15e2458650051df0e41..492c343f598ee0ab424ac76a44951c842564cc14 100644 (file)
@@ -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;