aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-23 14:21:59 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-23 13:30:23 +0000
commit790cc189ae51a4af370f9d83141cb58cdbaca6a7 (patch)
tree564db7896df67474c4af5a57a4a2daf1eaaf3f8e /vm/vmimpl
parent53c2e8ad91fd5f64989a4e6a923926990130b5cd (diff)
vm: check preemption string only for gce instances
Fixes #5028
Diffstat (limited to 'vm/vmimpl')
-rw-r--r--vm/vmimpl/vmimpl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go
index ac38a6634..564c3e66e 100644
--- a/vm/vmimpl/vmimpl.go
+++ b/vm/vmimpl/vmimpl.go
@@ -133,6 +133,10 @@ type Type struct {
// It's possible to create out-of-thin-air instances of this type.
// Out-of-thin-air instances are used by syz-ci for image testing, patch testing, bisection, etc.
Overcommit bool
+ // Instances of this type can be preempted and lost connection as the result.
+ // For preempted instances executor prints "SYZ-EXECUTOR: PREEMPTED" and then
+ // the host understands that the lost connection was expected and is not a bug.
+ Preemptible bool
}
type ctorFunc func(env *Env) (Pool, error)