Patchwork [3/3] kvm/ppc/booke: Don't call kvm_guest_enter twice

login
register
mail settings
Submitter Scott Wood
Date July 10, 2013, 10:47 p.m.
Message ID <1373496461-2668-4-git-send-email-scottwood@freescale.com>
Download mbox | patch
Permalink /patch/258264/
State New
Headers show

Comments

Scott Wood - July 10, 2013, 10:47 p.m.
kvm_guest_enter() was already called by kvmppc_prepare_to_enter().
Don't call it again.

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 arch/powerpc/kvm/booke.c | 2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index aa3bc36..57c1462 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -672,8 +672,6 @@  int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
 		goto out;
 	}
 
-	kvm_guest_enter();
-
 #ifdef CONFIG_PPC_FPU
 	/* Save userspace FPU state in stack */
 	enable_kernel_fp();