From bbd4840872f70e3342308c6965ab196ed2606af1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 8 Jan 2017 17:20:32 +0100 Subject: sys: extend kvm support Add new pseudo syscall syz_kvm_setup_cpu that setups VCPU into interesting states for execution. KVM is too difficult to setup otherwise. Lots of improvements possible, but this is a starting point. --- executor/test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 executor/test.go (limited to 'executor/test.go') diff --git a/executor/test.go b/executor/test.go new file mode 100644 index 000000000..09a1c130b --- /dev/null +++ b/executor/test.go @@ -0,0 +1,13 @@ +// Copyright 2017 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +//go:generate bash -c "gcc kvm_gen.cc kvm.S -o kvm_gen && ./kvm_gen > kvm.S.h" + +package executor + +// int test_kvm(); +import "C" + +func testKVM() int { + return int(C.test_kvm()) +} -- cgit mrf-deployment