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. --- sys/decl.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sys/decl.go') diff --git a/sys/decl.go b/sys/decl.go index d09328c91..a8170e68d 100644 --- a/sys/decl.go +++ b/sys/decl.go @@ -104,13 +104,24 @@ const ( BufferBlobRange BufferString BufferFilename + BufferText +) + +type TextKind int + +const ( + Text_x86_real TextKind = iota + Text_x86_16 + Text_x86_32 + Text_x86_64 ) type BufferType struct { TypeCommon Kind BufferKind - RangeBegin uintptr // for BufferBlobRange kind - RangeEnd uintptr // for BufferBlobRange kind + RangeBegin uintptr // for BufferBlobRange kind + RangeEnd uintptr // for BufferBlobRange kind + Text TextKind // for BufferText SubKind string Values []string // possible values for BufferString kind } -- cgit mrf-deployment