From a7c0649868090238541a8f62854cb7fe64dc6fc4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 25 Jun 2020 19:17:17 +0200 Subject: sys/syz-sysgen: ignore *_kvm.txt on linux/riscv64 The Linux RISC-V port in linux-next doesn't support KVM yet. Ignore it for now until KVM support is added upstream. Signed-off-by: Tobias Klauser --- sys/syz-sysgen/sysgen.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index b0d7fbbab..5fc2be7b7 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -114,9 +114,11 @@ func main() { return } top := descriptions - if OS == "linux" && job.Target.Arch == "arm" { - // Hack: KVM is not supported on ARM anymore. - // Note: syz-extract also ignores this file for arm. + if OS == "linux" && (job.Target.Arch == "arm" || job.Target.Arch == "riscv64") { + // Hack: KVM is not supported on ARM anymore. On riscv64 it + // is not supported yet but might be in the future. + // Note: syz-extract also ignores this file for arm and + // riscv64. top = descriptions.Filter(func(n ast.Node) bool { pos, _, _ := n.Info() return !strings.HasSuffix(pos.File, "_kvm.txt") -- cgit mrf-deployment