KVM: PPC: Booke: only prepare to enter when we enter
authorAlexander Graf <agraf@suse.de>
Tue, 28 Feb 2012 11:00:41 +0000 (12:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:55:29 +0000 (12:55 +0300)
commit03660ba27020250eae0b5a2722e0c7bec4968c3c
treec774ab4a1154ee04374b31edcee9883a926defea
parent7cc1e8ee78f469ecff8aa29465325f1e4c5e1b5f
KVM: PPC: Booke: only prepare to enter when we enter

So far, we've always called prepare_to_enter even when all we did was return
to the host. This patch changes that semantic to only call prepare_to_enter
when we actually want to get back into the guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/booke.c