aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kvm/vcpu_vector.c
diff options
context:
space:
mode:
authorGreentime Hu <[email protected]>2023-06-05 11:07:09 +0000
committerPalmer Dabbelt <[email protected]>2023-06-08 07:16:45 -0700
commit0c59922c769a1361d4699ef6694b59031767a74e (patch)
treea2d8afd8e3dc5bb44ba3a4ba4cc1a28dbc0f8435 /arch/riscv/kvm/vcpu_vector.c
parentcd054837243b5f36ff395c21135ff153871180f1 (diff)
riscv: Add ptrace vector support
This patch adds ptrace support for riscv vector. The vector registers will be saved in datap pointer of __riscv_v_ext_state. This pointer will be set right after the __riscv_v_ext_state data structure then it will be put in ubuf for ptrace system call to get or set. It will check if the datap got from ubuf is set to the correct address or not when the ptrace system call is trying to set the vector registers. Co-developed-by: Vincent Chen <[email protected]> Signed-off-by: Vincent Chen <[email protected]> Signed-off-by: Greentime Hu <[email protected]> Signed-off-by: Andy Chiu <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'arch/riscv/kvm/vcpu_vector.c')
0 files changed, 0 insertions, 0 deletions