[PATCH] powerpc/64s: handle ISA v3.1 local copy-paste context switches
Paul Mackerras
paulus at ozlabs.org
Thu Sep 3 11:19:40 AEST 2020
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 <npiggin at gmail.com>
For the KVM part:
Acked-by: Paul Mackerras <paulus at ozlabs.org>
More information about the Linuxppc-dev
mailing list