Re: riscv: optimize mode switch latency for Vector
From: Andy Chiu
Date: Sat Oct 17 2026 - 02:29:13 EST
On Wed, Oct 07, 2026 at 08:20:18AM -0600, Paul Walmsley wrote:
> On Tue, 6 Oct 2026, patchwork-bot+linux-riscv@xxxxxxxxxx wrote:
>
> > Hello:
> >
> > This series was applied to riscv/linux.git (for-next)
> > by Paul Walmsley <pjw@xxxxxxxxxx>:
> >
>
> [ ... ]
>
> > Here is the summary with links:
> > - [v6,1/8] riscv: do not read csr in vector context switch
> > https://git.kernel.org/riscv/c/5fd018c630e2
> > - [v6,2/8] riscv: vector: refactor context switch for kernel-mode vector
> > https://git.kernel.org/riscv/c/4740b934ebe7
> > - [v6,3/8] selftest: riscv: test vectorized user copy
> > https://git.kernel.org/riscv/c/52318cf0fa6e
> > - [v6,4/8] riscv: vector: refactor vector context operations
> > https://git.kernel.org/riscv/c/1a5c75ee3d09
> > - [v6,5/8] riscv: clarify vector state semantics on syscall and context switch
> > https://git.kernel.org/riscv/c/cc12e55016ba
> > - [v6,6/8] riscv: vector: adjust ptrace and signal behavior for INITIAL state
> > https://git.kernel.org/riscv/c/0d4b43a7734d
> > - [v6,7/8] selftests: riscv: Extend vector tests for sigreturn and ptrace
> > https://git.kernel.org/riscv/c/6740ec489dd7
> > - [v6,8/8] riscv: vector: optimize vstate operations
> > (no matching commit)
>
> Just to clarify, I only applied the first three patches, for the reason
> mentioned earlier.
>
Hi Paul, sorry for catching up this late. The whole series should be able
to apply, as the kvm fix is already in the tree. See commit b5060a4aa33d
("RISC-V: KVM: fix vcpu vector context handling for kernel-mode
vector"). Please let me know if you had encountered any issue when
applying my series, I am also happy to respin the rest of the series for
the next release if that works better for you!
Thanks,
Andy