[PATCH] riscv: Discard vector state on syscalls

Björn Töpel bjorn at kernel.org
Mon Jun 26 08:46:57 PDT 2023


Vineet Gupta <vineetg at rivosinc.com> writes:

> On 6/22/23 10:36, Björn Töpel wrote:
>> From: Björn Töpel <bjorn at rivosinc.com>
>>
>> The RISC-V vector specification states:
>>    Executing a system call causes all caller-saved vector registers
>>    (v0-v31, vl, vtype) and vstart to become unspecified.
>
> So the only use case of saving/restoring V regs in __switch_to is an 
> interrupt induced task switch ?

Yes!



More information about the linux-riscv mailing list