From: Michael Ellerman Date: Thu, 31 Aug 2017 11:36:17 +0000 Subject: Re: [v3, 1/4] KVM: PPC: Book3S HV: POWER9 does not require secondary thread management Message-Id: <3xjgLV5WRVz9t2M@ozlabs.org> List-Id: In-Reply-To: <20170825043036.18236-2-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nicholas Piggin , linuxppc-dev@lists.ozlabs.org Cc: kvm-ppc@vger.kernel.org, Nicholas Piggin On Fri, 2017-08-25 at 04:30:33 UTC, Nicholas Piggin wrote: > POWER9 CPUs have independent MMU contexts per thread, so KVM does not > need to quiesce secondary threads, so the hwthread_req/hwthread_state > protocol does not have to be used. So patch it away on POWER9, and patch > away the branch from the Linux idle wakeup to kvm_start_guest that is > never used. > > Add a warning and error out of kvmppc_grab_hwthread in case it is ever > called on POWER9. > > This avoids a hwsync in the idle wakeup path on POWER9. > > Signed-off-by: Nicholas Piggin > Acked-by: Paul Mackerras Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/94a04bc25a2c6296bd0c5e82c10e82 cheers