Skip to content

RFC RISC-V: KVM: Guest Debug Support

Chao Du kvm kvm-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RISC-V: KVM: Enable the KVM_CAP_SET_GUEST_DEBUG capabilityarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vm.c+2 -00 replies
2/3RISC-V: KVM: Implement kvm_arch_vcpu_ioctl_set_guest_debug()arch/riscv/kvm/vcpu.c+13 -20 replies
3/3RISC-V: KVM: Handle breakpoint exits for VCPUarch/riscv/kvm/vcpu_exit.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] RISC-V: KVM: Guest Debug Support

This series implements KVM Guest Debug on RISC-V. Currently, we can debug RISC-V KVM guest from the host side, with software breakpoints.

A brief test was done on QEMU RISC-V hypervisor emulator.

A TODO list which will be added later:
1. HW breakpoints support
2. Test cases

This series is based on Linux 6.7-rc6 and is also available at:
https://github.com/Du-Chao/linux/tree/riscv_gd_sw

The matched QEMU is available at:
https://github.com/Du-Chao/qemu/tree/riscv_gd_sw

Chao Du (3):
RISC-V: KVM: Enable the KVM_CAP_SET_GUEST_DEBUG capability
RISC-V: KVM: Implement kvm_arch_vcpu_ioctl_set_guest_debug()
RISC-V: KVM: Handle breakpoint exits for VCPU

 arch/riscv/include/uapi/asm/kvm.h |  1 +
 arch/riscv/kvm/vcpu.c             | 15 +++++++++++++--
 arch/riscv/kvm/vcpu_exit.c        |  4 ++++
 arch/riscv/kvm/vm.c               |  1 +
 4 files changed, 19 insertions(+), 2 deletions(-)

--
2.17.1