aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gvisor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-27 17:29:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-27 15:38:45 +0000
commit0cdd36fc443630fa8b6c5d7903cb7adc0baac5b5 (patch)
treef5c27bbb4a809970d83cba87df5bf7638639763c /vm/gvisor
parent1f9b5e5c3aa41af3a1403e3933f20a2776eb5f4b (diff)
sys/targets: add consts for gvisor/starnix
Lint started warning about duplicate "gvisor" const in pkg/cover. Add gvisor/starnix consts to sys/targets package to avoid duplication.
Diffstat (limited to 'vm/gvisor')
-rw-r--r--vm/gvisor/gvisor.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go
index 45c076b23..ed3018a51 100644
--- a/vm/gvisor/gvisor.go
+++ b/vm/gvisor/gvisor.go
@@ -21,11 +21,12 @@ 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"
"github.com/google/syzkaller/vm/vmimpl"
)
func init() {
- vmimpl.Register("gvisor", ctor, true)
+ vmimpl.Register(targets.GVisor, ctor, true)
}
type Config struct {
@@ -146,8 +147,8 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) {
tee = os.Stdout
}
merger := vmimpl.NewOutputMerger(tee)
- merger.Add("gvisor", rpipe)
- merger.Add("gvisor-goruntime", panicLogReadFD)
+ merger.Add("runsc", rpipe)
+ merger.Add("runsc-goruntime", panicLogReadFD)
inst := &instance{
cfg: pool.cfg,