Skip to content

KVM RISC-V ONE_REG ISA extension improvements

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 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7RISC-V: KVM: Factor-out ONE_REG related code to its own source filearch/riscv/include/asm/kvm_host.h arch/riscv/kvm/Makefile arch/riscv/kvm/vcpu.c +1 more+555 -5281 reply
2/7RISC-V: KVM: Extend ONE_REG to enable/disable multiple ISA extensionsarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+133 -291 reply
3/7RISC-V: KVM: Allow Zba and Zbs extensions for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+6 -01 reply
4/7RISC-V: KVM: Allow Zicntr, Zicsr, Zifencei, and Zihpm for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+12 -01 reply
5/7RISC-V: KVM: Sort ISA extensions alphabetically in ONE_REG interfacearch/riscv/kvm/vcpu_onereg.c+7 -61 reply
6/7RISC-V: KVM: Allow Zbc, Zbk* and Zk* extensions for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+33 -01 reply
7/7RISC-V: KVM: Allow Zvb* and Zvk* extensions for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+27 -01 reply

Reviews trailers per patch

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

PatchAndrew Jones
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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/7] KVM RISC-V ONE_REG ISA extension improvements

This series improves the ISA extension ONE_REG interface in following ways:
1) Move ONE_REG related code to dedicated source file
2) Allow multiple ISA extensions to be enabled/disabled in one ioctl
3) Add more ISA extensions to the ONE_REG interface

The series has following dependencies:
1) PATCH6 depends on
https://lore.kernel.org/linux-riscv/20230712084134.1648008-1-sameo at rivosinc.com/
2) PATCH7 depends on
https://lore.kernel.org/linux-riscv/20230711153743.1970625-1-heiko at sntech.de/

The PATCH1 to PATCH5 of this series don't depend on any patches.

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

Anup Patel (7):
RISC-V: KVM: Factor-out ONE_REG related code to its own source file
RISC-V: KVM: Extend ONE_REG to enable/disable multiple ISA extensions
RISC-V: KVM: Allow Zba and Zbs extensions for Guest/VM
RISC-V: KVM: Allow Zicntr, Zicsr, Zifencei, and Zihpm for Guest/VM
RISC-V: KVM: Sort ISA extensions alphabetically in ONE_REG interface
RISC-V: KVM: Allow Zbc, Zbk* and Zk* extensions for Guest/VM
RISC-V: KVM: Allow Zvb* and Zvk* extensions for Guest/VM

 arch/riscv/include/asm/kvm_host.h |   6 +
 arch/riscv/include/uapi/asm/kvm.h |  35 ++
 arch/riscv/kvm/Makefile           |   1 +
 arch/riscv/kvm/vcpu.c             | 529 +----------------------
 arch/riscv/kvm/vcpu_onereg.c      | 695 ++++++++++++++++++++++++++++++
 5 files changed, 738 insertions(+), 528 deletions(-)
 create mode 100644 arch/riscv/kvm/vcpu_onereg.c
Signature · 1 line
2.34.1