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_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 executor/test_test.go (limited to 'executor/test_test.go') diff --git a/executor/test_test.go b/executor/test_test.go new file mode 100644 index 000000000..86379b93b --- /dev/null +++ b/executor/test_test.go @@ -0,0 +1,16 @@ +// Copyright 2016 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. + +package executor + +import "testing" + +func TestKVM(t *testing.T) { + switch res := testKVM(); { + case res < 0: + t.Skip() + case res > 0: + t.Fail() + default: + } +} -- cgit mrf-deployment