Skip to content

RISC-V: KVM: Make SBI uapi consistent with ISA uapi

Andrew Jones kvm-riscv linux-riscv 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v15 of 6 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rebased on kvm-riscv/riscv_kvm_queue which is based on v6.7-rc5

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6RISC-V: KVM: Don't add SBI multi regs in get-reg-listarch/riscv/kvm/vcpu_onereg.c+2 -341 reply
2/6KVM: riscv: selftests: Drop SBI multi registerstools/testing/selftests/kvm/riscv/get-reg-list.c+0 -21 reply
3/6RISC-V: KVM: Make SBI uapi consistent with ISA uapiarch/riscv/include/asm/kvm_vcpu_sbi.h arch/riscv/kvm/vcpu_onereg.c arch/riscv/kvm/vcpu_sbi.c +1 more+65 -451 reply
4/6KVM: riscv: selftests: Add RISCV_SBI_EXT_REGtools/testing/selftests/kvm/include/riscv/processor.h tools/testing/selftests/kvm/lib/riscv/processor.c+25 -191 reply
5/6KVM: riscv: selftests: Use register subtypestools/testing/selftests/kvm/riscv/get-reg-list.c+73 -401 reply
6/6RISC-V: KVM: selftests: Treat SBI ext regs like ISA ext regstools/testing/selftests/kvm/include/kvm_util_base.h tools/testing/selftests/kvm/riscv/get-reg-list.c+92 -141 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchHaibo XuAnup Patel
1/6R-b R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b R-b
6/6R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/6] RISC-V: KVM: Make SBI uapi consistent with ISA uapi

SBI extension UAPI is currently almost the same as the ISA extension UAPI. This series closes the remaining gap by ensuring when an SBI extension is not available that its register returns ENOENT when accessed by userspace. We also drop the SBI multi registers from get-reg-list (ISA multi registers aren't there either) and make several improvements to the get-reg-list kselftest.

This series is based on Anup's riscv_kvm_more_exts_v1 branch.

Based on kvm-riscv/riscv_kvm_queue

v2:
- Rebased on kvm-riscv/riscv_kvm_queue which is based on v6.7-rc5

Thanks,
drew

Andrew Jones (6):
RISC-V: KVM: Don't add SBI multi regs in get-reg-list
KVM: riscv: selftests: Drop SBI multi registers
RISC-V: KVM: Make SBI uapi consistent with ISA uapi
KVM: riscv: selftests: Add RISCV_SBI_EXT_REG
KVM: riscv: selftests: Use register subtypes
RISC-V: KVM: selftests: Treat SBI ext regs like ISA ext regs

 arch/riscv/include/asm/kvm_vcpu_sbi.h         |  10 +-
 arch/riscv/kvm/vcpu_onereg.c                  |  53 ++---
 arch/riscv/kvm/vcpu_sbi.c                     |  75 +++---
 arch/riscv/kvm/vcpu_sbi_replace.c             |   2 +-
 .../selftests/kvm/include/kvm_util_base.h     |   1 +
 .../selftests/kvm/include/riscv/processor.h   |  40 ++--
 .../selftests/kvm/lib/riscv/processor.c       |   4 +-
 .../selftests/kvm/riscv/get-reg-list.c        | 220 +++++++++++++-----
 8 files changed, 254 insertions(+), 151 deletions(-)
Signature · 1 line
2.43.0