Skip to content

RISC-V, KVM: add 'vlenb' and vector CSRs to get-reg-list

Daniel Henrique Barboza kvm kvm-riscv linux-riscv 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesIn review
  2. v23 patches 1 replySuperseded
  3. v13 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- patch 3:
- check num_vector_regs() != 0 before copying vector regs
- export all 32 vector regs in num_vector_regs() and copy_vector_reg_indices()
- initialize 'size' out of the loop in copy_vector_reg_indices()
- v2 link: https://lore.kernel.org/kvm/20231205135041.2208004-1-dbarboza at ventanamicro.com/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RISC-V: KVM: set 'vlenb' in kvm_riscv_vcpu_alloc_vector_context()arch/riscv/kvm/vcpu_vector.c+1 -00 replies
2/3RISC-V: KVM: add 'vlenb' Vector CSRarch/riscv/kvm/vcpu_vector.c+15 -00 replies
3/3RISC-V: KVM: add vector CSRs in KVM_GET_REG_LISTarch/riscv/kvm/vcpu_onereg.c+55 -01 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnup Patel
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] RISC-V, KVM: add 'vlenb' and vector CSRs to get-reg-list

Hi,

In this version we're exporting all vector regs, not just vector CSRs, in get-reg-list. All changes were done in patch 3.

No other changes made.

Changes from v2:
- patch 3:
- check num_vector_regs() != 0 before copying vector regs
- export all 32 vector regs in num_vector_regs() and copy_vector_reg_indices()
- initialize 'size' out of the loop in copy_vector_reg_indices()
- v2 link: https://lore.kernel.org/kvm/20231205135041.2208004-1-dbarboza at ventanamicro.com/

Daniel Henrique Barboza (3):
RISC-V: KVM: set 'vlenb' in kvm_riscv_vcpu_alloc_vector_context()
RISC-V: KVM: add 'vlenb' Vector CSR
RISC-V: KVM: add vector CSRs in KVM_GET_REG_LIST

 arch/riscv/kvm/vcpu_onereg.c | 55 ++++++++++++++++++++++++++++++++++++
 arch/riscv/kvm/vcpu_vector.c | 16 +++++++++++
 2 files changed, 71 insertions(+)
Signature · 1 line
2.41.0