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>
Fri, 5 Oct 2012 21:38:46 +0000 (23:38 +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 6646574bf9302730ba5ec146ad7283fb687eac9a..dc86371b9953dee0c761d985fca937c7873d4ea2 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();