]> git.baikalelectronics.ru Git - kernel.git/commit
ppc/kvm: Set the runlatch bit of a CPU just before starting guest
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>
Fri, 11 Apr 2014 10:31:58 +0000 (16:01 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 06:32:45 +0000 (16:32 +1000)
commitf959646d873478766c82f4a32b5d1ad15d02d17c
tree22d9917f3fd13d246c0f3dd2a373eec3551c9028
parent04ef94d621acb7a9c4b57727145dea3fa63a3184
ppc/kvm: Set the runlatch bit of a CPU just before starting guest

The secondary threads in the core are kept offline before launching guests
in kvm on powerpc: "43561f3983027560:KVM: PPC: Allow book3s_hv guests to use
SMT processor modes."

Hence their runlatch bits are cleared. When the secondary threads are called
in to start a guest, their runlatch bits need to be set to indicate that they
are busy. The primary thread has its runlatch bit set though, but there is no
harm in setting this bit once again. Hence set the runlatch bit for all
threads before they start guest.

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S