summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>2026-05-25 12:59:28 +0300
committerAnup Patel <anup@brainfault.org>2026-05-26 06:34:22 +0300
commit5eb6d68fe24dc856df173700958e90ac0f990333 (patch)
tree7596c9fdac4e4d9dcecf92c8f599422567d01345
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff)
downloadlinux-5eb6d68fe24dc856df173700958e90ac0f990333.tar.xz
RISC-V: KVM: Fix ebreak self test failure
The ebreak self test enables/disables guest debugging as a part of the test. However the KVM_SET_GUEST_DEBUG ioctl doesn't actually do it. Fixing it by calling kvm_riscv_vcpu_config_guest_debug. Fixes: 6ed523e2b612 ("RISC-V: KVM: Factor-out VCPU config into separate sources") Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260525095930.3924905-1-mayuresh.chitale@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
-rw-r--r--arch/riscv/kvm/vcpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kvm/vcpu.c b/arch/riscv/kvm/vcpu.c
index a73690eda84b..cf6e231e76e2 100644
--- a/arch/riscv/kvm/vcpu.c
+++ b/arch/riscv/kvm/vcpu.c
@@ -538,6 +538,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
else
vcpu->guest_debug = 0;
+ kvm_riscv_vcpu_config_guest_debug(vcpu);
return 0;
}