Skip to content

ONE_REG interface for SBI FWFT extension

Anup Patel kvm kvm-riscv linux-kselftest linux-riscv lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 3 repliesIn review
  2. v26 patches 0 repliesSuperseded
  3. v16 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Re-based on latest KVM RISC-V queue
- Improved FWFT ONE_REG interface to allow enabling/disabling each FWFT feature from KVM userspace

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6RISC-V: KVM: Set initial value of hedeleg in kvm_arch_vcpu_create()arch/riscv/kvm/vcpu.c+2 -10 replies
2/6RISC-V: KVM: Introduce feature specific reset for SBI FWFTarch/riscv/kvm/vcpu_sbi_fwft.c+28 -20 replies
3/6RISC-V: KVM: Introduce optional ONE_REG callbacks for SBI extensionsarch/riscv/include/asm/kvm_vcpu_sbi.h arch/riscv/kvm/vcpu_onereg.c arch/riscv/kvm/vcpu_sbi.c +1 more+176 -830 replies
4/6RISC-V: KVM: Move copy_sbi_ext_reg_indices() to SBI implementationarch/riscv/include/asm/kvm_vcpu_sbi.h arch/riscv/kvm/vcpu_onereg.c arch/riscv/kvm/vcpu_sbi.c+29 -290 replies
5/6RISC-V: KVM: Implement ONE_REG interface for SBI FWFT statearch/riscv/include/asm/kvm_vcpu_sbi_fwft.h arch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_sbi_fwft.c+200 -131 reply
6/6KVM: riscv: selftests: Add SBI FWFT to get-reg-list testtools/testing/selftests/kvm/riscv/get-reg-list.c+32 -01 reply

Reviews trailers per patch

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

PatchAndrew Jones
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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/6] ONE_REG interface for SBI FWFT extension

This series adds ONE_REG interface for SBI FWFT extension implemented by KVM RISC-V. This was missed out in accepted SBI FWFT patches for KVM RISC-V.

These patches can also be found in the riscv_kvm_fwft_one_reg_v3 branch
at: https://github.com/avpatel/linux.git

Changes since v2:
- Re-based on latest KVM RISC-V queue
- Improved FWFT ONE_REG interface to allow enabling/disabling each FWFT feature from KVM userspace

Changes since v1:
- Dropped have_state in PATCH4 as suggested by Drew
- Added Drew's Reviewed-by in appropriate patches

Anup Patel (6):
RISC-V: KVM: Set initial value of hedeleg in kvm_arch_vcpu_create()
RISC-V: KVM: Introduce feature specific reset for SBI FWFT
RISC-V: KVM: Introduce optional ONE_REG callbacks for SBI extensions
RISC-V: KVM: Move copy_sbi_ext_reg_indices() to SBI implementation
RISC-V: KVM: Implement ONE_REG interface for SBI FWFT state
KVM: riscv: selftests: Add SBI FWFT to get-reg-list test

 arch/riscv/include/asm/kvm_vcpu_sbi.h         |  22 +-
 arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h    |   1 +
 arch/riscv/include/uapi/asm/kvm.h             |  15 ++
 arch/riscv/kvm/vcpu.c                         |   3 +-
 arch/riscv/kvm/vcpu_onereg.c                  |  60 +----
 arch/riscv/kvm/vcpu_sbi.c                     | 172 +++++++++++--
 arch/riscv/kvm/vcpu_sbi_fwft.c                | 227 ++++++++++++++++--
 arch/riscv/kvm/vcpu_sbi_sta.c                 |  63 +++--
 .../selftests/kvm/riscv/get-reg-list.c        |  32 +++
 9 files changed, 467 insertions(+), 128 deletions(-)
Signature · 1 line
2.43.0