aboutsummaryrefslogtreecommitdiffstats
path: root/vm/isolated
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-25 12:07:11 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-25 11:18:31 +0000
commit7e02dfac6584de88e03df494ca500b59802d93eb (patch)
treeaf0a55b5e65966a5715f917383ca3d2f59982932 /vm/isolated
parent36dfdd05f93ef886e289dd5cc91330d8ae1d0182 (diff)
vm: dedup VM count restriction in debug mode
Move the VM count restriction logic info vm package. This avoids lots of duplication, makes it supported for VM types that failed to do this, and allows to unify more VM count logic in future.
Diffstat (limited to 'vm/isolated')
-rwxr-xr-xvm/isolated/isolated.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/vm/isolated/isolated.go b/vm/isolated/isolated.go
index 3b8b8720d..2e5ce50a9 100755
--- a/vm/isolated/isolated.go
+++ b/vm/isolated/isolated.go
@@ -83,13 +83,6 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) {
return nil, fmt.Errorf("the number of Targets and the number of USBDevNums should be same")
}
}
- if env.Debug && len(cfg.Targets) > 1 {
- log.Logf(0, "limiting number of targets from %v to 1 in debug mode", len(cfg.Targets))
- cfg.Targets = cfg.Targets[:1]
- if len(cfg.USBDevNums) > 1 {
- cfg.USBDevNums = cfg.USBDevNums[:1]
- }
- }
pool := &Pool{
cfg: cfg,
env: env,