public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] RISC-V: KVM: Guest Debug Support
@ 2023-12-21  9:49 Chao Du
  2023-12-21  9:50 ` [RFC PATCH 1/3] RISC-V: KVM: Enable the KVM_CAP_SET_GUEST_DEBUG capability Chao Du
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Chao Du @ 2023-12-21  9:49 UTC (permalink / raw)
  To: kvm, kvm-riscv, anup, atishp, dbarboza, paul.walmsley, palmer,
	aou

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-05  9:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21  9:49 [RFC PATCH 0/3] RISC-V: KVM: Guest Debug Support Chao Du
2023-12-21  9:50 ` [RFC PATCH 1/3] RISC-V: KVM: Enable the KVM_CAP_SET_GUEST_DEBUG capability Chao Du
2023-12-21  9:50 ` [RFC PATCH 2/3] RISC-V: KVM: Implement kvm_arch_vcpu_ioctl_set_guest_debug() Chao Du
2023-12-21  9:50 ` [RFC PATCH 3/3] RISC-V: KVM: Handle breakpoint exits for VCPU Chao Du
2023-12-21 12:31 ` [RFC PATCH 0/3] RISC-V: KVM: Guest Debug Support Anup Patel
2023-12-22  8:28   ` Chao Du
2023-12-25  2:52     ` Chao Du
2024-01-04 10:22       ` Chao Du
2024-01-04 11:29     ` Anup Patel
2024-01-05  9:42       ` Chao Du

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox