aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 8e816fb8e..a5da21c3f 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -1657,6 +1657,8 @@ struct fs_image_segment {
#define sys_memfd_create 314
#elif GOARCH_s390x
#define sys_memfd_create 350
+#elif GOARCH_riscv64
+#define sys_memfd_create 279
#endif
static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, long segments)
@@ -1857,6 +1859,8 @@ error:
#endif
#if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu
+// KVM is not yet supported on RISC-V
+#if !GOARCH_riscv64
#include <errno.h>
#include <fcntl.h>
#include <linux/kvm.h>
@@ -1876,6 +1880,7 @@ static long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long
}
#endif
#endif
+#endif
#if SYZ_EXECUTOR || SYZ_NET_RESET
#include <errno.h>