RISC-V: KVM: Handle breakpoint exits for VCPU
authorChao Du <duchao@eswincomputing.com>
Tue, 2 Apr 2024 06:26:27 +0000 (06:26 +0000)
committerAnup Patel <anup@brainfault.org>
Mon, 8 Apr 2024 08:36:27 +0000 (14:06 +0530)
commit1df1fb521b9dcf6a2fa8f74f9f39d40e5a6bd233
treef412d4b4bff7ae301eec5d4fb6631887c1255d15
parentedcbe90f128922830228b9a5656c944a5d7ac306
RISC-V: KVM: Handle breakpoint exits for VCPU

Exit to userspace for breakpoint traps. Set the exit_reason as
KVM_EXIT_DEBUG before exit.

Signed-off-by: Chao Du <duchao@eswincomputing.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240402062628.5425-3-duchao@eswincomputing.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_exit.c