]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: Ignore EXITING_GUEST_MODE mode
authorAlexander Graf <agraf@suse.de>
Mon, 13 Aug 2012 10:43:33 +0000 (12:43 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 14 Aug 2012 22:29:17 +0000 (00:29 +0200)
We don't need to do anything when mode is EXITING_GUEST_MODE, because
we essentially are outside of guest mode and did everything it asked
us to do by the time we check it.

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

index fbf18be99beecd18184e1cc60f995c742456c38e..3855c0feda6d0b3a76e81134b65825e817e42207 100644 (file)
@@ -89,11 +89,6 @@ int kvmppc_prepare_to_enter(struct kvm_vcpu *vcpu)
                        continue;
                }
 
-               if (vcpu->mode == EXITING_GUEST_MODE) {
-                       r = 1;
-                       break;
-               }
-
 #ifdef CONFIG_PPC64
                /* lazy EE magic */
                hard_irq_disable();