]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Fix preempted vcore list locking
authorPaul Mackerras <paulus@samba.org>
Thu, 16 Jul 2015 07:11:13 +0000 (17:11 +1000)
committerAlexander Graf <agraf@suse.de>
Sat, 22 Aug 2015 09:16:19 +0000 (11:16 +0200)
commitbc20115be963d5f4fa13234ebcb678a87c61436c
tree0aa0b6b1fc26316ce313bcfd74ef666a1b1298f3
parent15e548fa2bf115a21359b1c0cda985f3a91eee52
KVM: PPC: Book3S HV: Fix preempted vcore list locking

When a vcore gets preempted, we put it on the preempted vcore list for
the current CPU.  The runner task then calls schedule() and comes back
some time later and takes itself off the list.  We need to be careful
to lock the list that it was put onto, which may not be the list for the
current CPU since the runner task may have moved to another CPU.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c