KVM: PPC: booke: rework rescheduling checks
authorAlexander Graf <agraf@suse.de>
Thu, 16 Feb 2012 14:07:37 +0000 (14:07 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:55:05 +0000 (12:55 +0300)
commita8e4ef841429d338b8700998afb3dfc18c1f25d9
treec5c28f33902b7c7e9de837732e5a97d46c22cc57
parentd1ff54992d3008f4253ab3176913bb85d770e935
KVM: PPC: booke: rework rescheduling checks

Instead of checking whether we should reschedule only when we exited
due to an interrupt, let's always check before entering the guest back
again. This gets the target more in line with the other archs.

Also while at it, generalize the whole thing so that eventually we could
have a single kvmppc_prepare_to_enter function for all ppc targets that
does signal and reschedule checking for us.

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