Skip to content

KVM RISC-V SBI v0.3 support

Anup Patel kvm kvm-riscv linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6RISC-V: KVM: Upgrade SBI spec version to v0.3arch/riscv/include/asm/kvm_vcpu_sbi.h+1 -11 reply
2/6RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() functionarch/riscv/include/asm/kvm_vcpu_sbi.h arch/riscv/kvm/vcpu_sbi.c arch/riscv/kvm/vcpu_sbi_v01.c+22 -161 reply
3/6RISC-V: KVM: Implement SBI v0.3 SRST extensionarch/riscv/kvm/vcpu_sbi.c arch/riscv/kvm/vcpu_sbi_replace.c+46 -01 reply
4/6RISC-V: Add SBI HSM suspend related definesarch/riscv/include/asm/sbi.h arch/riscv/kernel/cpu_ops_sbi.c arch/riscv/kvm/vcpu_sbi_hsm.c+25 -81 reply
5/6RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() functionarch/riscv/include/asm/kvm_host.h arch/riscv/kvm/vcpu_exit.c+17 -61 reply
6/6RISC-V: KVM: Implement SBI HSM suspend callarch/riscv/kvm/vcpu_sbi_hsm.c+14 -01 reply

Reviews trailers per patch

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

PatchAtish Patra
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 v1 thread

Cover letter [PATCH 0/6] KVM RISC-V SBI v0.3 support

This series adds initial support for SBI v0.3 which includes:
1) SBI SRST support for Guest
2) SBI HSM suspend for Guest

The SBI PMU support is intentionally left out and will be added as a separate patch series.

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

Anup Patel (6):
RISC-V: KVM: Upgrade SBI spec version to v0.3
RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() function
RISC-V: KVM: Implement SBI v0.3 SRST extension
RISC-V: Add SBI HSM suspend related defines
RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() function
RISC-V: KVM: Implement SBI HSM suspend call

 arch/riscv/include/asm/kvm_host.h     |  1 +
 arch/riscv/include/asm/kvm_vcpu_sbi.h |  5 ++-
 arch/riscv/include/asm/sbi.h          | 27 +++++++++++++---
 arch/riscv/kernel/cpu_ops_sbi.c       |  2 +-
 arch/riscv/kvm/vcpu_exit.c            | 22 ++++++++++----
 arch/riscv/kvm/vcpu_sbi.c             | 19 ++++++++++++
 arch/riscv/kvm/vcpu_sbi_hsm.c         | 18 +++++++++--
 arch/riscv/kvm/vcpu_sbi_replace.c     | 44 +++++++++++++++++++++++++++
 arch/riscv/kvm/vcpu_sbi_v01.c         | 18 ++---------
 9 files changed, 125 insertions(+), 31 deletions(-)
Signature · 1 line
2.25.1