diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-12-29 11:02:43 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-12-29 13:56:59 +0100 |
| commit | 27a9e3872eb3a229cced88c14a2011188fa968df (patch) | |
| tree | 0071cf5e258f6d1e7b8f226014b6e678879b7c7d /vm/vmimpl | |
| parent | 38b877e9ed19a16abc19e91b5571f485f3912b16 (diff) | |
vm/qemu: scale ssh timeout
Increase ssh wait timeout according to the target slowdown.
Diffstat (limited to 'vm/vmimpl')
| -rw-r--r-- | vm/vmimpl/vmimpl.go | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go index 0ef8636ee..5a8fed098 100644 --- a/vm/vmimpl/vmimpl.go +++ b/vm/vmimpl/vmimpl.go @@ -19,6 +19,7 @@ import ( "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/report" + "github.com/google/syzkaller/sys/targets" ) // Pool represents a set of test machines (VMs, physical devices, etc) of particular type. @@ -62,15 +63,16 @@ type Instance interface { type Env struct { // Unique name // Can be used for VM name collision resolution if several pools share global name space. - Name string - OS string // target OS - Arch string // target arch - Workdir string - Image string - SSHKey string - SSHUser string - Debug bool - Config []byte // json-serialized VM-type-specific config + Name string + OS string // target OS + Arch string // target arch + Workdir string + Image string + SSHKey string + SSHUser string + Timeouts targets.Timeouts + Debug bool + Config []byte // json-serialized VM-type-specific config } // BootError is returned by Pool.Create when VM does not boot. |
