From: Alexander Graf Date: Sun, 12 Aug 2012 09:13:25 +0000 (+0200) Subject: KVM: PPC: BookE: Drop redundant vcpu->mode set X-Git-Tag: next-20120925~30^2~27 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5cd6952cca531b27108a02a3d81de3db94b0061d;p=karo-tx-linux.git KVM: PPC: BookE: Drop redundant vcpu->mode set We only need to set vcpu->mode to outside once. Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 4652e0bfa781..492c343f598e 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -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;