KVM: PPC: Book3s: PR: Disable preemption in vcpu_run
authorAlexander Graf <agraf@suse.de>
Fri, 9 Dec 2011 14:46:21 +0000 (15:46 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:27 +0000 (14:52 +0200)
commit7d82714d4d1293edc57439c796750310866624b2
treedca025da598927203e640aecc1486470b26d8533
parentdfd4d47e9a71c5a35eb67a44cd311efbe1846b7e
KVM: PPC: Book3s: PR: Disable preemption in vcpu_run

When entering the guest, we want to make sure we're not getting preempted
away, so let's disable preemption on entry, but enable it again while handling
guest exits.

Reported-by: Jörg Sommer <joerg@alea.gnuu.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_pr.c