From: Paul Mackerras Date: Thu, 03 Sep 2020 01:19:40 +0000 Subject: Re: [PATCH] powerpc/64s: handle ISA v3.1 local copy-paste context switches Message-Id: <20200903011940.GH272502@thinks.paulus.ozlabs.org> List-Id: References: <20200825075535.224536-1-npiggin@gmail.com> In-Reply-To: <20200825075535.224536-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org On Tue, Aug 25, 2020 at 05:55:35PM +1000, Nicholas Piggin wrote: > The ISA v3.1 the copy-paste facility has a new memory move functionality > which allows the copy buffer to be pasted to domestic memory (RAM) as > opposed to foreign memory (accelerator). > > This means the POWER9 trick of avoiding the cp_abort on context switch if > the process had not mapped foreign memory does not work on POWER10. Do the > cp_abort unconditionally there. > > KVM must also cp_abort on guest exit to prevent copy buffer state leaking > between contexts. > > Signed-off-by: Nicholas Piggin For the KVM part: Acked-by: Paul Mackerras