From 7e3683309afa0aa757daa056f2c47d2a8f6bf994 Mon Sep 17 00:00:00 2001 From: 6eanut Date: Tue, 6 Jan 2026 18:29:51 +0800 Subject: sys/linux, executor: enable kvm fuzzing support for riscv64 --- executor/common_linux.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 2cb04060e..de393227d 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3199,8 +3199,7 @@ error_clear_loop: #endif #if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu || __NR_syz_kvm_vgic_v3_setup || __NR_syz_kvm_setup_syzos_vm || __NR_syz_kvm_add_vcpu || __NR_syz_kvm_assert_syzos_uexit || __NR_syz_kvm_assert_reg || __NR_syz_kvm_assert_syzos_kvm_exit -// KVM is not yet supported on RISC-V -#if !GOARCH_riscv64 && !GOARCH_arm +#if !GOARCH_arm #include #include #include @@ -3217,7 +3216,7 @@ error_clear_loop: #include "common_kvm_arm64.h" #elif GOARCH_ppc64 || GOARCH_ppc64le #include "common_kvm_ppc64.h" -#elif !GOARCH_arm && (SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu) +#elif SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5, volatile long a6, volatile long a7) { return 0; -- cgit mrf-deployment