diff options
| author | 6eanut <jiakaiPeanut@gmail.com> | 2026-01-06 18:29:51 +0800 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2026-01-09 15:30:06 +0000 |
| commit | 7e3683309afa0aa757daa056f2c47d2a8f6bf994 (patch) | |
| tree | aed7086ae2c8b5096169d8973bce12a52303266d /executor | |
| parent | 77cda984f819e74fb6d9d50ecc2fa437c46e3a32 (diff) | |
sys/linux, executor: enable kvm fuzzing support for riscv64
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_linux.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 <errno.h> #include <fcntl.h> #include <linux/kvm.h> @@ -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; |
