Patchwork [22/56] KVM: PPC: BookE: Drop redundant vcpu->mode set

login
register
mail settings
Submitter Alexander Graf
Date Oct. 4, 2012, 1:36 p.m.
Message ID <1349357844-11288-23-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/189118/
State New
Headers show

Comments

Alexander Graf - Oct. 4, 2012, 1:36 p.m.
We only need to set vcpu->mode to outside once.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/booke.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

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;