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: v3.8-rc1~121^2~56^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e85ad380c6bf6dcd4776d313c81d16a6293db136;p=platform%2Fkernel%2Flinux-exynos.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 4652e0b..492c343 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;