Revert "KVM: PPC: Book3S HV: POWER9 does not require secondary thread management"
authorPaul Mackerras <paulus@ozlabs.org>
Thu, 19 Oct 2017 04:14:20 +0000 (15:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2017 04:28:04 +0000 (15:28 +1100)
commit31a4d4480c616bf0fa475f1869e5df852d3544bd
treee8259d23653c2d476403b1cc9347843b18d60177
parente19b205be43d11bff638cad4487008c48d21c103
Revert "KVM: PPC: Book3S HV: POWER9 does not require secondary thread management"

This reverts commit 94a04bc25a2c6296bd0c5e82c10e8231c2b11f77.

In order to run HPT guests on a radix POWER9 host, we will have to run
the host in single-threaded mode, because POWER9 processors do not
currently support running some threads of a core in HPT mode while
others are in radix mode ("mixed mode").

That means that we will need the same mechanisms that are used on
POWER8 to make the secondary threads available to KVM, which were
disabled on POWER9 by commit 94a04bc25a2c.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kvm_book3s_asm.h
arch/powerpc/kernel/idle_book3s.S
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S