]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9af8f27c2992b80c17c64cb3311010eb8c9d19d8
treee8259d23653c2d476403b1cc9347843b18d60177
parent7b0a8915e98b4018bc8f48f36ef1430ffe0e58c5
Revert "KVM: PPC: Book3S HV: POWER9 does not require secondary thread management"

This reverts commit 565f0910fe3a3e8a7f4e93d3e1f9eb945e7f705f.

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 565f0910fe3a.

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