aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
authorLaura Peskin <pesk@google.com>2024-09-16 17:03:51 -0700
committerAleksandr Nogikh <nogikh@google.com>2024-09-24 14:52:23 +0000
commit349a68c4b056a06438a1e75e9b8a3a583b06d511 (patch)
tree7a095d526b059ff69ccadee7d20a89e1c4110c67 /pkg/instance/instance.go
parent5643e0e933eb9fd69bb78740a8f3967b4d37bc0e (diff)
tools/syz-execprog: pass the VM type to execprog
This makes it possible to skip certain machine checks depending on the VM type, as syz-manager already does.
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index 4c877a229..ef8860330 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -442,8 +442,9 @@ func (inst *inst) csourceOptions() (csource.Options, error) {
return opts, nil
}
-func ExecprogCmd(execprog, executor, OS, arch, sandbox string, sandboxArg int, repeat, threaded, collide bool,
- procs, faultCall, faultNth int, optionalFlags bool, slowdown int, progFile string) string {
+func ExecprogCmd(execprog, executor, OS, arch, vmType, sandbox string, sandboxArg int, repeat,
+ threaded, collide bool, procs, faultCall, faultNth int, optionalFlags bool, slowdown int,
+ progFile string) string {
repeatCount := 1
if repeat {
repeatCount = 0
@@ -463,6 +464,7 @@ func ExecprogCmd(execprog, executor, OS, arch, sandbox string, sandboxArg int, r
optionalArg += " " + tool.OptionalFlags([]tool.Flag{
{Name: "slowdown", Value: fmt.Sprint(slowdown)},
{Name: "sandboxArg", Value: fmt.Sprint(sandboxArg)},
+ {Name: "type", Value: fmt.Sprint(vmType)},
})
}