]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Check wait conditions before sleeping in kvmppc_vcore_blocked
authorSuresh E. Warrier <warrier@linux.vnet.ibm.com>
Mon, 3 Nov 2014 04:52:00 +0000 (15:52 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 15 Dec 2014 12:27:25 +0000 (13:27 +0100)
commitb7389ed11a4a48c6d6080147c44dbb6ab5c5fd47
treea74507c75182d8e542940477be7f0c3ea7bbea17
parent5a23c19b317b56c778e3d09fe8a032842a11d7c1
KVM: PPC: Book3S HV: Check wait conditions before sleeping in kvmppc_vcore_blocked

The kvmppc_vcore_blocked() code does not check for the wait condition
after putting the process on the wait queue. This means that it is
possible for an external interrupt to become pending, but the vcpu to
remain asleep until the next decrementer interrupt.  The fix is to
make one last check for pending exceptions and ceded state before
calling schedule().

Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c