From 42306a435d930eba6b8f1c447a2a7ca50410f533 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 25 Jun 2020 19:15:57 +0200 Subject: sys/syz-extract: 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-extract/linux.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go index ef3a9c6d3..05789ef55 100644 --- a/sys/syz-extract/linux.go +++ b/sys/syz-extract/linux.go @@ -134,10 +134,11 @@ func (*linux) prepareArch(arch *Arch) error { } func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) { - if strings.HasSuffix(info.File, "_kvm.txt") && arch.target.Arch == "arm" { + if strings.HasSuffix(info.File, "_kvm.txt") && (arch.target.Arch == "arm" || arch.target.Arch == "riscv64") { // Hack: KVM is not supported on ARM anymore. We may want some more official support - // for marking descriptions arch-specific, but so far this combination is the only one. - // Note: syz-sysgen also ignores this file for arm. + // for marking descriptions arch-specific, but so far this combination is the only + // one. For riscv64, KVM is not supported yet but might be in the future. + // Note: syz-sysgen also ignores this file for arm and riscv64. return nil, nil, nil } headerArch := arch.target.KernelHeaderArch -- cgit mrf-deployment